mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Fix broken test runner (!).
If a test expected an error and found at least one, it would not fail on any other expected errors that didn't occur. Also, some tests were expecting a compile time error message even though the test script doesn't validate those (yet). The test function was getting monolithic, so I went ahead and split it into a separate little class.
This commit is contained in:
@ -1 +1 @@
|
||||
var x = 2xFF // expect error: Error at 'xFF': Expect end of file.
|
||||
var x = 2xFF // expect error
|
||||
|
||||
@ -1,5 +1,2 @@
|
||||
new Fn { IO.print("ok") // expect error
|
||||
}.call() // expect error
|
||||
|
||||
// The second error is cascaded here. If it starts failing, just remove that
|
||||
// expectation.
|
||||
Fn.new { IO.print("ok") // expect error
|
||||
}.call()
|
||||
|
||||
@ -1 +1 @@
|
||||
var x = 0x999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 // expect error: Error: Number literal was too large.
|
||||
var x = 0x999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 // expect error
|
||||
|
||||
@ -1 +1 @@
|
||||
var x = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 // expect error: Error: Number literal was too large.
|
||||
var x = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 // expect error
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
var i234567890i234567890i234567890i234567890i234567890i2345 = "value" // expect error
|
||||
var i234567890i234567890i234567890i234567890i234567890i234567890i2345 = "value" // expect error
|
||||
class c234567890c234567890c234567890c234567890c234567890c234567890c2345 {} // expect error
|
||||
|
||||
Reference in New Issue
Block a user