From 49f6134f53b60dea7f34a3da93d02585d34df872 Mon Sep 17 00:00:00 2001 From: Henry Smith Date: Thu, 9 Oct 2014 08:15:16 +0100 Subject: [PATCH] Add failing test reproducing the bug reported in issue #86 --- .../Fixture/integration/tests/containsequalitybug.test | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/TwigJs/Tests/Fixture/integration/tests/containsequalitybug.test 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