forked from Mirror/wren
test: Fix some tests so they fail on expected error, not on syntax error. (#779)
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
class Foo {
|
class Foo {
|
||||||
this +(value) { // expect error
|
construct +(value) { // expect error
|
||||||
System.print("ok")
|
System.print("ok")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
class Foo {
|
class Foo {
|
||||||
this -(value) { // expect error
|
construct -(value) { // expect error
|
||||||
System.print("ok")
|
System.print("ok")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
class Foo {
|
class Foo {
|
||||||
this name=(value) { // expect error
|
construct name=(value) { // expect error
|
||||||
System.print("ok")
|
System.print("ok")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
class Foo {
|
class Foo {
|
||||||
this [value] { // expect error
|
construct [value] { // expect error
|
||||||
System.print("ok")
|
System.print("ok")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
class Foo {
|
class Foo {
|
||||||
this ! { // expect error
|
construct ! { // expect error
|
||||||
System.print("ok")
|
System.print("ok")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
class Foo {
|
class Foo {
|
||||||
this new { // expect error
|
construct new { // expect error
|
||||||
System.print("ok")
|
System.print("ok")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
var f = new Fn {|a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q| "!" } // expect error
|
var f = Fn.new {|a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q| "!" } // expect error
|
||||||
|
|||||||
Reference in New Issue
Block a user