diff options
Diffstat (limited to 'testing/tests')
-rw-r--r-- | testing/tests/inheritance.rs | 6 |
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"); |