aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/inheritance.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/tests/inheritance.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs
index ebcca70..5d5c23c 100644
--- a/testing/tests/inheritance.rs
+++ b/testing/tests/inheritance.rs
@@ -13,6 +13,12 @@ struct BaseTemplate { }
struct ChildTemplate { }
#[test]
+fn test_use_base_directly() {
+ let t = BaseTemplate {};
+ assert_eq!(t.render(), "\nCopyright 2017\n");
+}
+
+#[test]
fn test_simple_extends() {
let t = ChildTemplate { };
assert_eq!(t.render(), "Content goes here\nCopyright 2017\n");