From 75120e0e04e4bf4c171aaa1ee3935241a0d98b69 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Mon, 24 Nov 2008 23:25:27 +0000 Subject: [PATCH] fixed regression test counting --- regressions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regressions.js b/regressions.js index a4d1b12b..bf545446 100644 --- a/regressions.js +++ b/regressions.js @@ -108,7 +108,8 @@ commands.addUserCommand(["regr[essions]"], // 1.) run commands and mappings tests for (let [, test] in Iterator(tests)) { - if (count >= 1 && ++currentTest != count) + currentTest++; + if (count >= 1 && currentTest != count) continue; let testDescription = util.clip(test.cmds.join(" -> "), 80); @@ -133,7 +134,8 @@ commands.addUserCommand(["regr[essions]"], // 2.) Run function tests for (let [, func] in Iterator(functions)) { - if (count >= 1 && ++currentTest != count) + currentTest++; + if (count >= 1 && currentTest != count) continue; liberator.echomsg("Running test " + currentTest + " of " + totalTests + ": " + util.clip(func.toString().replace(/[\s\n]+/gm, " "), 80));