Add base54.reset() to compress tests
authorRichard van Velzen <rvanvelzen@experty.com>
Tue, 12 Apr 2016 18:08:09 +0000 (20:08 +0200)
committerRichard van Velzen <rvanvelzen@experty.com>
Tue, 12 Apr 2016 18:08:09 +0000 (20:08 +0200)
Without this reset, char counts bleed to next tests. One test had a bad expect clause.

test/compress/issue-976.js
test/run-tests.js

index dea3070..06e11f4 100644 (file)
@@ -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")}'
 }
index b4333b7..e9ce3bb 100755 (executable)
@@ -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
             });