aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/operators.rs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/operators.rs')
-rw-r--r--testing/tests/operators.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/tests/operators.rs b/testing/tests/operators.rs
index c58f650..625ec29 100644
--- a/testing/tests/operators.rs
+++ b/testing/tests/operators.rs
@@ -31,3 +31,14 @@ fn test_operators() {
let t = OperatorsTemplate { a: 1, b: 1, c: 2 };
assert_eq!(t.render().unwrap(), "muldivmodaddrshlshbandbxorborandor");
}
+
+
+#[derive(Template)]
+#[template(path = "precedence.html")]
+struct PrecedenceTemplate { }
+
+#[test]
+fn test_precedence() {
+ let t = PrecedenceTemplate { };
+ assert_eq!(t.render().unwrap(), "6".repeat(7));
+}