From 2a6c986e851dd21204c84ee806dc13678353e87d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Dec 2024 07:45:11 +0100 Subject: [PATCH] Add a test --- extra/html-extra/Tests/Fixtures/html_classes.test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extra/html-extra/Tests/Fixtures/html_classes.test b/extra/html-extra/Tests/Fixtures/html_classes.test index 65ecaba6ada..9b26d1564d8 100644 --- a/extra/html-extra/Tests/Fixtures/html_classes.test +++ b/extra/html-extra/Tests/Fixtures/html_classes.test @@ -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