aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-13 21:55:47 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-13 21:57:29 +0100
commita6b4f305e948cdf327b45abe52b27a4d81013d5d (patch)
tree609db336330a0e7ad5332abfdafdc45a6d9f9231 /testing
parent3000d98a04882655cabe71dd590716d73cd892da (diff)
downloadaskama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.tar.gz
askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.tar.bz2
askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.zip
Rename comparison tests to be about any operators
Diffstat (limited to '')
-rw-r--r--testing/templates/operators.html (renamed from testing/templates/comparison.html)0
-rw-r--r--testing/tests/operators.rs (renamed from testing/tests/comparison.rs)8
2 files changed, 4 insertions, 4 deletions
diff --git a/testing/templates/comparison.html b/testing/templates/operators.html
index ea22546..ea22546 100644
--- a/testing/templates/comparison.html
+++ b/testing/templates/operators.html
diff --git a/testing/tests/comparison.rs b/testing/tests/operators.rs
index 20214a0..0154118 100644
--- a/testing/tests/comparison.rs
+++ b/testing/tests/operators.rs
@@ -5,15 +5,15 @@ extern crate askama_derive;
use askama::Template;
#[derive(Template)]
-#[template(path = "comparison.html")]
-struct ComparisonTemplate {
+#[template(path = "operators.html")]
+struct OperatorsTemplate {
a: usize,
b: usize,
c: usize,
}
#[test]
-fn test_comparison() {
- let t = ComparisonTemplate { a: 1, b: 1, c: 2 };
+fn test_operators() {
+ let t = OperatorsTemplate { a: 1, b: 1, c: 2 };
assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf\n");
}