diff options
Diffstat (limited to '')
-rw-r--r-- | testing/tests/operators.rs | 11 | ||||
-rw-r--r-- | testing/tests/precedence.rs | 15 |
2 files changed, 11 insertions, 15 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)); +} diff --git a/testing/tests/precedence.rs b/testing/tests/precedence.rs deleted file mode 100644 index f02189d..0000000 --- a/testing/tests/precedence.rs +++ /dev/null @@ -1,15 +0,0 @@ -#[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)); -} |