diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-10 07:38:34 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-10 09:27:33 +0200 |
commit | 1e0ee705a8e295ebddd31a472990133d34ad3465 (patch) | |
tree | 203bc040015dee5a69592c531de4741ac6a03f91 /testing/tests/loops.rs | |
parent | ffc74a1775f6e4bbd8cd161fd68d814ec981f3c2 (diff) | |
download | askama-1e0ee705a8e295ebddd31a472990133d34ad3465.tar.gz askama-1e0ee705a8e295ebddd31a472990133d34ad3465.tar.bz2 askama-1e0ee705a8e295ebddd31a472990133d34ad3465.zip |
Propagate format errors and rename `render_to()` to `render_into()`
Diffstat (limited to 'testing/tests/loops.rs')
-rw-r--r-- | testing/tests/loops.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/loops.rs b/testing/tests/loops.rs index eedbfa0..3125598 100644 --- a/testing/tests/loops.rs +++ b/testing/tests/loops.rs @@ -14,7 +14,7 @@ fn test_for() { let s = ForTemplate { strings: vec!["A", "alfa", "1"], }; - assert_eq!(s.render(), "0. A\n1. alfa\n2. 1\n"); + assert_eq!(s.render().unwrap(), "0. A\n1. alfa\n2. 1\n"); } @@ -31,5 +31,5 @@ fn test_nested_for() { let s = NestedForTemplate { seqs: vec![&alpha, &numbers], }; - assert_eq!(s.render(), "1\n 0a1b2c2\n 0one1two"); + assert_eq!(s.render().unwrap(), "1\n 0a1b2c2\n 0one1two"); } |