aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/operators.html
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-13 21:55:47 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-13 21:57:29 +0100
commita6b4f305e948cdf327b45abe52b27a4d81013d5d (patch)
tree609db336330a0e7ad5332abfdafdc45a6d9f9231 /testing/templates/operators.html
parent3000d98a04882655cabe71dd590716d73cd892da (diff)
downloadaskama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.tar.gz
askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.tar.bz2
askama-a6b4f305e948cdf327b45abe52b27a4d81013d5d.zip
Rename comparison tests to be about any operators
Diffstat (limited to 'testing/templates/operators.html')
-rw-r--r--testing/templates/operators.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/templates/operators.html b/testing/templates/operators.html
new file mode 100644
index 0000000..ea22546
--- /dev/null
+++ b/testing/templates/operators.html
@@ -0,0 +1,48 @@
+{% 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 %}