Skip to content

Commit

Permalink
Add test for issue #136
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Sep 14, 2016
1 parent f03da3f commit 52139da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/js/JSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 52139da

Please sign in to comment.