diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-17 14:34:24 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-17 14:34:24 +0100 |
commit | 1121af3dd03bb000b935036232b11ae4f284195e (patch) | |
tree | 592c710cb89541df19ac86da18d82dacd9921b75 /testing/templates/operators.html | |
parent | 22cd667f4ea414884217d8fb37ccd4e3e1369f5a (diff) | |
download | askama-1121af3dd03bb000b935036232b11ae4f284195e.tar.gz askama-1121af3dd03bb000b935036232b11ae4f284195e.tar.bz2 askama-1121af3dd03bb000b935036232b11ae4f284195e.zip |
Split comparison tests from other operators
Diffstat (limited to '')
-rw-r--r-- | testing/templates/operators.html | 54 |
1 files changed, 3 insertions, 51 deletions
diff --git a/testing/templates/operators.html b/testing/templates/operators.html index 020126b..750f0aa 100644 --- a/testing/templates/operators.html +++ b/testing/templates/operators.html @@ -1,57 +1,9 @@ -{% 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 %} {% if a * c > b -%} mul -{%- endif %} +{%- endif -%} {% if c / c == a -%} div -{%- endif %} +{%- endif -%} {% if a % c == b -%} mod -{%- endif %} +{%- endif -%} |