Skip to content

Commit

Permalink
test(parser): add more test cases for Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Nov 20, 2024
1 parent 10ff840 commit 2016129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func TestParser_Term(t *testing.T) {
{input: `tag{{.`, err: unexpectedTokenError{actual: Token{kind: tokenOpenCurly, val: "{"}}},
{input: `tag{x}.`, err: unexpectedTokenError{actual: Token{kind: tokenCloseCurly, val: "}"}}},
{input: `tag{x:}.`, err: unexpectedTokenError{actual: Token{kind: tokenCloseCurly, val: "}"}}},
{input: `tag{x/1}.`, err: unexpectedTokenError{actual: Token{kind: tokenGraphic, val: "/"}}},
{input: `tag{1:2}.`, err: unexpectedTokenError{actual: Token{kind: tokenInteger, val: "1"}}},
{input: `tag{x: ,}.`, err: unexpectedTokenError{actual: Token{kind: tokenComma, val: ","}}},
{input: `tag{x:1 y:2}.`, err: unexpectedTokenError{actual: Token{kind: tokenLetterDigit, val: "y"}}},
Expand Down

0 comments on commit 2016129

Please sign in to comment.