aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/simple.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 53cb03e..95c14b1 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -249,3 +249,12 @@ fn test_index() {
let t = IndexTemplate { foo };
assert_eq!(t.render().unwrap(), "baz");
}
+
+#[derive(Template)]
+#[template(source = "foo", ext = "txt")]
+struct Empty;
+
+#[test]
+fn test_empty() {
+ assert_eq!(Empty.render().unwrap(), "foo");
+}