From 32a9dd5f2edf3cd288a25d11479ca32336ba4a30 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 4 Sep 2017 20:31:28 +0200 Subject: Moved precedence test into operators module --- testing/tests/operators.rs | 11 +++++++++++ testing/tests/precedence.rs | 15 --------------- 2 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 testing/tests/precedence.rs (limited to 'testing/tests') 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)); -} -- cgit