diff options
author | Mark Jaquith <mark.github@txfx.net> | 2013-10-25 16:28:15 -0400 |
---|---|---|
committer | Mark Jaquith <mark.github@txfx.net> | 2013-10-25 16:28:15 -0400 |
commit | 9cd118ca3d3e9882e4ecb14b153aa05cb070b453 (patch) | |
tree | 26c4b7d5402e4fc0643625a59d5d2e6b65f0ec92 /test | |
parent | cfd5c6155c4774b4def6711c5159d9080148a7ae (diff) | |
download | tracifyjs-9cd118ca3d3e9882e4ecb14b153aa05cb070b453.tar.gz tracifyjs-9cd118ca3d3e9882e4ecb14b153aa05cb070b453.zip |
Add a unit test for issue-126
Add a unit test to test to test for aggressive parenthesis removal that causes functional changes.
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/issue-126.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/compress/issue-126.js b/test/compress/issue-126.js index 1e654941..7a597b87 100644 --- a/test/compress/issue-126.js +++ b/test/compress/issue-126.js @@ -10,6 +10,7 @@ concatenate_rhs_strings: { foo(bar() + 123 + "Hello" + "World" + ("Foo" + "Bar")); foo("Foo" + "Bar" + bar() + 123 + "Hello" + "World" + ("Foo" + "Bar")); foo("Hello" + bar() + 123 + "World"); + foo(bar() + 'Foo' + (10 + parseInt('10'))); } expect: { foo(bar() + 123 + "HelloWorld"); @@ -18,5 +19,6 @@ concatenate_rhs_strings: { foo(bar() + 123 + "HelloWorldFooBar"); foo("FooBar" + bar() + "123HelloWorldFooBar"); foo("Hello" + bar() + "123World"); + foo(bar() + 'Foo' + (10 + parseInt('10'))); } } |