aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/operators.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-10 07:38:34 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-10 09:27:33 +0200
commit1e0ee705a8e295ebddd31a472990133d34ad3465 (patch)
tree203bc040015dee5a69592c531de4741ac6a03f91 /testing/tests/operators.rs
parentffc74a1775f6e4bbd8cd161fd68d814ec981f3c2 (diff)
downloadaskama-1e0ee705a8e295ebddd31a472990133d34ad3465.tar.gz
askama-1e0ee705a8e295ebddd31a472990133d34ad3465.tar.bz2
askama-1e0ee705a8e295ebddd31a472990133d34ad3465.zip
Propagate format errors and rename `render_to()` to `render_into()`
Diffstat (limited to '')
-rw-r--r--testing/tests/operators.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/operators.rs b/testing/tests/operators.rs
index 73b30b1..c58f650 100644
--- a/testing/tests/operators.rs
+++ b/testing/tests/operators.rs
@@ -14,7 +14,7 @@ struct CompareTemplate {
#[test]
fn test_compare() {
let t = CompareTemplate { a: 1, b: 1, c: 2 };
- assert_eq!(t.render(), "tf\ntf\ntf\ntf\ntf\ntf");
+ assert_eq!(t.render().unwrap(), "tf\ntf\ntf\ntf\ntf\ntf");
}
@@ -29,5 +29,5 @@ struct OperatorsTemplate {
#[test]
fn test_operators() {
let t = OperatorsTemplate { a: 1, b: 1, c: 2 };
- assert_eq!(t.render(), "muldivmodaddrshlshbandbxorborandor");
+ assert_eq!(t.render().unwrap(), "muldivmodaddrshlshbandbxorborandor");
}