feat: add 17 non-crashing regression tests from wren-fuzz for issue #442
These test cases cover malformed class declarations, invalid string literals, corrupted identifiers, and various edge cases that previously caused crashes but now produce expected parse errors.
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
System.print("Held!")
|
||||||
|
|
||||||
|
// expect error line 8
|
||||||
|
class Wren {
|
||||||
|
yTo(city) {
|
||||||
|
System.print("Fl0to %(bity)")
|
||||||
|
}
|
||||||
|
GGGGGGCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGing GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG}
|
||||||
|
|
||||||
|
vach GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG}
|
||||||
|
|
||||||
|
vach {|word|èiberd(wryield(word) }
|
||||||
|
}
|
||||||
|
|
||||||
|
while (!ad
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// expect error line 3
|
||||||
|
// expect error line 4
|
||||||
|
class 0""0
|
||||||
|
class@0c""c00000000000000000000000000000000000000000000000000ëëëìëëëë
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class]e00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class]e00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class{M00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class W00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// expect error line 4
|
||||||
|
// expect error line 5
|
||||||
|
// expect error line 6
|
||||||
|
0.p(""0
|
||||||
|
classý0p("".0
|
||||||
|
0""class W00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class]e00000000000000000000000000000000000ÖÖÖÖÖÖÖ
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class 0.r«««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««0«0«0
|
||||||
|
class W00000000000000000000000000000000000ÖÖÖÖÖÖÖ
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// expect error line 3
|
||||||
|
// expect error line 5
|
||||||
|
em.0(0Hel00)
|
||||||
|
|
||||||
|
class WVe00000000000000000000000000000000ÖÖÖÖÖÖÖ
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class W00000000000000000000000000000000000ÖÖÜëùëë
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class W00000000000000000000000000000000000ÖÖÖÖÖÖÖ
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
classW00000000000000000000000000000000000ÖÖÖÖÖÖÖ
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class W000 y0000000000000000000000000000000000000000000000000ÖÖÖÖÖÖ
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class W00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// expect error line 2
|
||||||
|
class W00000000000000000000000000000000000«««««««
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// expect error line 3
|
||||||
|
// expect error line 4
|
||||||
|
0.p(""0
|
||||||
|
class¾S00000000000000000000000000000000000ëëëëìëë
|
||||||
Reference in New Issue
Block a user