aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-04 21:52:26 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-04 21:52:26 +0100
commitacd8bc66d59f052341f8b5d0ee5028fc502ce191 (patch)
tree34f84dc7bbefb7ffe4e4f4a034d1cc6029ccfcf3 /testing/templates
parentbe99df789a21257da18a3664f4ac6409314e8682 (diff)
downloadaskama-acd8bc66d59f052341f8b5d0ee5028fc502ce191.tar.gz
askama-acd8bc66d59f052341f8b5d0ee5028fc502ce191.tar.bz2
askama-acd8bc66d59f052341f8b5d0ee5028fc502ce191.zip
Add tests for all 6 comparison operators
Diffstat (limited to '')
-rw-r--r--testing/templates/comparison.html6
-rw-r--r--testing/templates/eq.html1
2 files changed, 6 insertions, 1 deletions
diff --git a/testing/templates/comparison.html b/testing/templates/comparison.html
new file mode 100644
index 0000000..87aaec3
--- /dev/null
+++ b/testing/templates/comparison.html
@@ -0,0 +1,6 @@
+{% if a == b %}t{% endif %}{% if a == c %}t{% else %}f{% endif %}
+{% if a != c %}t{% endif %}{% if a != b %}t{% else %}f{% endif %}
+{% if c >= b %}t{% endif %}{% if b >= c %}t{% else %}f{% endif %}
+{% if c > b %}t{% endif %}{% if a > c %}t{% else %}f{% endif %}
+{% if a <= b %}t{% endif %}{% if c <= b %}t{% else %}f{% endif %}
+{% if a < c %}t{% endif %}{% if a < b %}t{% else %}f{% endif %}
diff --git a/testing/templates/eq.html b/testing/templates/eq.html
deleted file mode 100644
index 44666d3..0000000
--- a/testing/templates/eq.html
+++ /dev/null
@@ -1 +0,0 @@
-{% if a == b %}t{% endif %}{% if a == c %}t{% else %}f{% endif %}