diff options
Diffstat (limited to 'test/compress/conditionals.js')
-rw-r--r-- | test/compress/conditionals.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js index bc4624d1..dc2bb671 100644 --- a/test/compress/conditionals.js +++ b/test/compress/conditionals.js @@ -124,3 +124,20 @@ ifs_5: { } } } + +ifs_6: { + options = { + conditionals: true, + comparisons: true + }; + input: { + if (!foo && !bar && !baz && !boo) { + x = 10; + } else { + x = 20; + } + } + expect: { + x = foo || bar || baz || boo ? 20 : 10; + } +} |