fix: correct test runner to fail on all unmet expected errors and refactor into Test class

The test runner previously short-circuited when a test expected an error and found at least one, causing it to miss other expected errors that didn't occur. This commit fixes the error pattern regex to exclude line-specific error expectations, removes specific error message strings from test files (since the runner doesn't validate them yet), and refactors the monolithic test function into a dedicated Test class with parse and run methods for better maintainability.
This commit is contained in:
Bob Nystrom
2015-07-09 15:06:33 +00:00
parent b1c9231b5a
commit 357e24efcb
6 changed files with 217 additions and 169 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
var i234567890i234567890i234567890i234567890i234567890i2345 = "value" // expect error
var i234567890i234567890i234567890i234567890i234567890i234567890i2345 = "value" // expect error
class c234567890c234567890c234567890c234567890c234567890c234567890c2345 {} // expect error