askama/testing/templates/macro-import-str-cmp-macro.html
René Kijewski 6d1cf5e43d Issue #379 was fixed
This PR adds the tests by @msrd0 <git@msrd0.de> that failed before.
The error was fixed somewhen between f23162a and now, so these tests
serve to prevent regressions in the future.

I simplified the tests very slightly to omit whitespaces in the output.
2021-07-30 21:57:00 +02:00

14 lines
253 B
HTML

{% macro strcmp0(s, other) -%}
{%- if s == "foo" -%}
foo
{%- else if s == other -%}
other
{%- else -%}
neither
{%- endif -%}
{% endmacro %}
{% macro strcmp(s) %}
{%- call strcmp0(s, "bar") -%}
{% endmacro %}