diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-13 21:55:47 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-13 21:57:29 +0100 |
commit | a6b4f305e948cdf327b45abe52b27a4d81013d5d (patch) | |
tree | 609db336330a0e7ad5332abfdafdc45a6d9f9231 /testing/tests/operators.rs | |
parent | 3000d98a04882655cabe71dd590716d73cd892da (diff) | |
download | askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.tar.gz askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.tar.bz2 askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.zip |
Rename comparison tests to be about any operators
Diffstat (limited to 'testing/tests/operators.rs')
-rw-r--r-- | testing/tests/operators.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/tests/operators.rs b/testing/tests/operators.rs new file mode 100644 index 0000000..0154118 --- /dev/null +++ b/testing/tests/operators.rs @@ -0,0 +1,19 @@ +extern crate askama; +#[macro_use] +extern crate askama_derive; + +use askama::Template; + +#[derive(Template)] +#[template(path = "operators.html")] +struct OperatorsTemplate { + a: usize, + b: usize, + c: usize, +} + +#[test] +fn test_operators() { + let t = OperatorsTemplate { a: 1, b: 1, c: 2 }; + assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf\n"); +} |