From 74949458dfd3c922b256183f5e01718252c2d73f Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 24 Jul 2014 13:49:08 -0600 Subject: [PATCH] Fixes for the test runner --- tests/test-runner.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/test-runner.js b/tests/test-runner.js index a7a4944..f4d67ea 100644 --- a/tests/test-runner.js +++ b/tests/test-runner.js @@ -129,7 +129,7 @@ function runParseTests() for (var row = 0; row < expected.length; row++) { - if (actual.length != expected.length) + if (actual[row].length != expected[row].length) { passed = false; break; @@ -137,12 +137,6 @@ function runParseTests() for (var col = 0; col < expected[row].length; col++) { - if (actual[row].length != expected[row].length) - { - passed = false; - break; - } - var expectedVal = expected[row][col]; var actualVal = actual[row][col]; @@ -237,7 +231,7 @@ function runUnparseTests() function compare(actual, expected) { return { - passed: actual == expected + passed: actual === expected }; } }