aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/precedence.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/tests/precedence.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/tests/precedence.rs b/testing/tests/precedence.rs
new file mode 100644
index 0000000..f02189d
--- /dev/null
+++ b/testing/tests/precedence.rs
@@ -0,0 +1,15 @@
+#[macro_use]
+extern crate askama;
+
+use askama::Template;
+
+#[derive(Template)]
+#[template(path = "precedence.html")]
+struct PrecedenceTemplate {
+}
+
+#[test]
+fn test_precedence() {
+ let t = PrecedenceTemplate { };
+ assert_eq!(t.render().unwrap(), "6".repeat(7));
+}