diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-03-30 00:13:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 00:13:46 +0800 |
commit | 0f910ee25c3e644baf043f217b2fe91df8dc67ac (patch) | |
tree | c20a7bece7a234c57c0ba1089c5bc92fbba4de26 /test/compress/issue-597.js | |
parent | beb9659778b04e46556b58bd1d093f3938be9dce (diff) | |
download | tracifyjs-0f910ee25c3e644baf043f217b2fe91df8dc67ac.tar.gz tracifyjs-0f910ee25c3e644baf043f217b2fe91df8dc67ac.zip |
improve tests from #1726 (#1729)
Diffstat (limited to 'test/compress/issue-597.js')
-rw-r--r-- | test/compress/issue-597.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/compress/issue-597.js b/test/compress/issue-597.js index 2aaaf3f1..987bcacc 100644 --- a/test/compress/issue-597.js +++ b/test/compress/issue-597.js @@ -114,11 +114,7 @@ issue_1724: { ++a % Infinity | Infinity ? a++ : 0; console.log(a); } - expect: { - var a = 0; - ++a % (1/0) | 1/0 ? a++ : 0; - console.log(a); - } + expect_exact: "var a=0;++a%(1/0)|1/0?a++:0;console.log(a);" expect_stdout: "2" } @@ -126,8 +122,6 @@ issue_1725: { input: { ([].length === 0) % Infinity ? console.log("PASS") : console.log("FAIL"); } - expect: { - (0 === [].length) % (1/0) ? console.log("PASS") : console.log("FAIL"); - } + expect_exact: '(0===[].length)%(1/0)?console.log("PASS"):console.log("FAIL");' expect_stdout: "PASS" } |