[Pkg-javascript-commits] [uglifyjs] 176/228: improve tests from #1726 (#1729)
Jonas Smedegaard
dr at jones.dk
Sat Apr 15 14:25:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit 0f910ee25c3e644baf043f217b2fe91df8dc67ac
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Thu Mar 30 00:13:46 2017 +0800
improve tests from #1726 (#1729)
---
test/compress/issue-597.js | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/test/compress/issue-597.js b/test/compress/issue-597.js
index 2aaaf3f..987bcac 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"
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list