Skip to content

Commit

Permalink
minor #4506 Add a test (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Add a test

Commits
-------

2a6c986 Add a test
  • Loading branch information
fabpot committed Dec 29, 2024
2 parents 2e13a83 + 2a6c986 commit 38688f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extra/html-extra/Tests/Fixtures/html_classes.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
{{ html_classes('a', {'b': true, 'c': false}, 'd', false ? 'e', true ? 'f', '0') }}
{% set class_a = 'a' %}
{% set class_b = 'b' %}
{{ html_classes(class_a, {(class_b): true})}}
{%- set class_c -%}
c
{%- endset -%}
{{ html_classes(class_a, { (class_b): true }) }}
{{ html_classes(class_a, { (class_c): true }) }}
--DATA--
return []
--EXPECT--
a b d f 0
a b
a c

0 comments on commit 38688f7

Please sign in to comment.