diff options
author | Richard van Velzen <rvanvelzen@experty.com> | 2016-04-12 20:08:09 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2016-04-12 20:08:09 +0200 |
commit | 187a0caf9d2b283387b57b71dea6aa133b266638 (patch) | |
tree | 897d9562d62fbb964d7ac1decaae8e1892c1b659 | |
parent | b5a7a231f7e9f09cc00e92c970d304d6071f7ac1 (diff) | |
download | tracifyjs-187a0caf9d2b283387b57b71dea6aa133b266638.tar.gz tracifyjs-187a0caf9d2b283387b57b71dea6aa133b266638.zip |
Add base54.reset() to compress tests
Without this reset, char counts bleed to next tests. One test had a bad expect clause.
-rw-r--r-- | test/compress/issue-976.js | 2 | ||||
-rwxr-xr-x | test/run-tests.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/compress/issue-976.js b/test/compress/issue-976.js index dea30705..06e11f40 100644 --- a/test/compress/issue-976.js +++ b/test/compress/issue-976.js @@ -84,5 +84,5 @@ eval_mangle: { return a + eval('c'); } } - expect_exact: 'function f1(n,c,e,a,o){return n("c")+c}function f2(a,b,c,d,e){return a+eval("c")}function f3(a,eval,c,d,e){return a+eval("c")}' + expect_exact: 'function f1(n,c,e,a,f){return n("c")+c}function f2(a,b,c,d,e){return a+eval("c")}function f3(a,eval,c,d,e){return a+eval("c")}' } diff --git a/test/run-tests.js b/test/run-tests.js index b4333b7a..e9ce3bb2 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -85,6 +85,7 @@ function run_compress_tests() { log_start_file(file); function test_case(test) { log_test(test.name); + U.base54.reset(); var options = U.defaults(test.options, { warnings: false }); |