diff --git a/tests/TwigJs/Tests/Fixture/integration/tests/containsequalitybug.test b/tests/TwigJs/Tests/Fixture/integration/tests/containsequalitybug.test new file mode 100644 index 0000000..517df04 --- /dev/null +++ b/tests/TwigJs/Tests/Fixture/integration/tests/containsequalitybug.test @@ -0,0 +1,10 @@ +--TEST-- +twig.contains strict equality bug regression test for schmittjoh/twig.js#86 +--TEMPLATE-- +{% set number = '1' %} +{% set list = [1, 2] %} +{% if number in list %}yes{% else %}no{% endif %} +--DATA-- +return {} +--EXPECT-- +yes