Skip to content

Commit 33f6514

Browse files
committed
Adding function specific syntax tests
1 parent 3570bae commit 33f6514

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/syntax.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,22 @@
119119
}
120120
]
121121
},
122+
{
123+
"comment": "Function syntax errors",
124+
"given": {},
125+
"cases": [
126+
{
127+
"comment": "invalid start of function",
128+
"expression": "@(foo)",
129+
"error": "syntax"
130+
},
131+
{
132+
"comment": "function names cannot be quoted",
133+
"expression": "\"foo\"(bar)",
134+
"error": "syntax"
135+
}
136+
]
137+
},
122138
{
123139
"comment": "Wildcard syntax",
124140
"given": {"type": "object"},

0 commit comments

Comments
 (0)