diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-04 21:52:26 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-04 21:52:26 +0100 |
commit | acd8bc66d59f052341f8b5d0ee5028fc502ce191 (patch) | |
tree | 34f84dc7bbefb7ffe4e4f4a034d1cc6029ccfcf3 /testing/tests/comparison.rs | |
parent | be99df789a21257da18a3664f4ac6409314e8682 (diff) | |
download | askama-acd8bc66d59f052341f8b5d0ee5028fc502ce191.tar.gz askama-acd8bc66d59f052341f8b5d0ee5028fc502ce191.tar.bz2 askama-acd8bc66d59f052341f8b5d0ee5028fc502ce191.zip |
Add tests for all 6 comparison operators
Diffstat (limited to 'testing/tests/comparison.rs')
-rw-r--r-- | testing/tests/comparison.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/tests/comparison.rs b/testing/tests/comparison.rs index 2e34bc0..20214a0 100644 --- a/testing/tests/comparison.rs +++ b/testing/tests/comparison.rs @@ -5,15 +5,15 @@ extern crate askama_derive; use askama::Template; #[derive(Template)] -#[template(path = "eq.html")] -struct EqTemplate { +#[template(path = "comparison.html")] +struct ComparisonTemplate { a: usize, b: usize, c: usize, } #[test] -fn test_eq() { - let t = EqTemplate { a: 1, b: 1, c: 2 }; - assert_eq!(t.render(), "tf\n"); +fn test_comparison() { + let t = ComparisonTemplate { a: 1, b: 1, c: 2 }; + assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf\n"); } |