Skip to content

Commit 2016129

Browse files
committed
test(parser): add more test cases for Dict
1 parent 10ff840 commit 2016129

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/parser_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ func TestParser_Term(t *testing.T) {
198198
{input: `tag{{.`, err: unexpectedTokenError{actual: Token{kind: tokenOpenCurly, val: "{"}}},
199199
{input: `tag{x}.`, err: unexpectedTokenError{actual: Token{kind: tokenCloseCurly, val: "}"}}},
200200
{input: `tag{x:}.`, err: unexpectedTokenError{actual: Token{kind: tokenCloseCurly, val: "}"}}},
201+
{input: `tag{x/1}.`, err: unexpectedTokenError{actual: Token{kind: tokenGraphic, val: "/"}}},
201202
{input: `tag{1:2}.`, err: unexpectedTokenError{actual: Token{kind: tokenInteger, val: "1"}}},
202203
{input: `tag{x: ,}.`, err: unexpectedTokenError{actual: Token{kind: tokenComma, val: ","}}},
203204
{input: `tag{x:1 y:2}.`, err: unexpectedTokenError{actual: Token{kind: tokenLetterDigit, val: "y"}}},

0 commit comments

Comments
 (0)