From 52139dad41dc15f6e3556236bd326a98cdc269d6 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Wed, 14 Sep 2016 13:31:25 +0200 Subject: [PATCH] Add test for issue #136 --- tests/js/JSTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/js/JSTest.php b/tests/js/JSTest.php index 3e129f0..17a33ec 100644 --- a/tests/js/JSTest.php +++ b/tests/js/JSTest.php @@ -781,6 +781,12 @@ function otherFuncName() { 'e={true:!0,false:!1}', ); + // https://github.com/matthiasmullie/minify/issues/134 + $tests[] = array( + 'if (\'x\'+a in foo && \'y\'+b[a].z in bar)', + 'if(\'x\'+a in foo&&\'y\'+b[a].z in bar)', + ); + // update tests' expected results for cross-system compatibility foreach ($tests as &$test) { if (!empty($test[1])) {