aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLibravatar Dave Poulter <hello@davepoulter.net>2019-10-08 11:17:38 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2019-10-08 11:36:19 +0200
commitc82db307b0456e2a901599516b14f0d92e9cc682 (patch)
tree4970f0824b6cc7ab452e22869329d22a183e4ec6 /testing
parent66274b7c8ef2f47fe479013b9d408ac21a36472d (diff)
downloadaskama-c82db307b0456e2a901599516b14f0d92e9cc682.tar.gz
askama-c82db307b0456e2a901599516b14f0d92e9cc682.tar.bz2
askama-c82db307b0456e2a901599516b14f0d92e9cc682.zip
Add support for boolean literals
Diffstat (limited to '')
-rw-r--r--testing/templates/literals.html2
-rw-r--r--testing/tests/simple.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/testing/templates/literals.html b/testing/templates/literals.html
index b8d8fbe..9d973bb 100644
--- a/testing/templates/literals.html
+++ b/testing/templates/literals.html
@@ -1 +1,3 @@
{{ "a" }}
+{{ true }}
+{{ false }}
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index e4239ce..519b87c 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -114,7 +114,7 @@ struct LiteralsTemplate {}
#[test]
fn test_literals() {
let s = LiteralsTemplate {};
- assert_eq!(s.render().unwrap(), "a");
+ assert_eq!(s.render().unwrap(), "a\ntrue\nfalse");
}
struct Holder {