test: Fix some tests so they fail on expected error, not on syntax error. (#779)

This commit is contained in:
Michel Hermier
2020-07-15 05:14:08 +02:00
committed by GitHub
parent 58611240e7
commit 54b4c233b9
7 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
class Foo { class Foo {
this +(value) { // expect error construct +(value) { // expect error
System.print("ok") System.print("ok")
} }
} }

View File

@ -1,5 +1,5 @@
class Foo { class Foo {
this -(value) { // expect error construct -(value) { // expect error
System.print("ok") System.print("ok")
} }
} }

View File

@ -1,5 +1,5 @@
class Foo { class Foo {
this name=(value) { // expect error construct name=(value) { // expect error
System.print("ok") System.print("ok")
} }
} }

View File

@ -1,5 +1,5 @@
class Foo { class Foo {
this [value] { // expect error construct [value] { // expect error
System.print("ok") System.print("ok")
} }
} }

View File

@ -1,5 +1,5 @@
class Foo { class Foo {
this ! { // expect error construct ! { // expect error
System.print("ok") System.print("ok")
} }
} }

View File

@ -1,5 +1,5 @@
class Foo { class Foo {
this new { // expect error construct new { // expect error
System.print("ok") System.print("ok")
} }
} }

View File

@ -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