From acd8bc66d59f052341f8b5d0ee5028fc502ce191 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 4 Feb 2017 21:52:26 +0100 Subject: Add tests for all 6 comparison operators --- testing/templates/comparison.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testing/templates/comparison.html (limited to 'testing/templates/comparison.html') 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 %} -- cgit