Skip to content

Commit 3683510

Browse files
committed
Add additional tests from go-fuzz
1 parent 3f7d43a commit 3683510

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/syntax.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
"expression": "(",
8585
"error": "syntax"
8686
},
87+
{
88+
"expression": "((&",
89+
"error": "syntax"
90+
},
8791
{
8892
"expression": "a[",
8993
"error": "syntax"
@@ -95,6 +99,20 @@
9599
{
96100
"expression": "a][",
97101
"error": "syntax"
102+
},
103+
{
104+
"expression": "!",
105+
"error": "syntax"
106+
}
107+
]
108+
},
109+
{
110+
"comment": "Boolean syntax errors",
111+
"given": {"type": "object"},
112+
"cases": [
113+
{
114+
"expression": "![!(!",
115+
"error": "syntax"
98116
}
99117
]
100118
},

0 commit comments

Comments
 (0)