Skip to content

Commit

Permalink
Update lexer_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Aug 17, 2024
1 parent 8fe3366 commit f3b96ea
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lexer/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ func TestAll(t *testing.T) {
{1, 3, PLUS, ""},
{1, 5, INT, "2"},
}},
{"function() {\n return a+b\n}", []Info{
{"function() {\n return a+b\n}", []Info{
{1, 1, FUNCTION, ""},
{1, 12, LPAREN, ""},
{1, 6, RPAREN, ""},
{1, 8, LBRACE, ""},
{2, 5, RETURN, ""},
{2, 12, NAME, "a"},
{2, 13, PLUS, ""},
{2, 14, NAME, "b"},
{1, 9, LPAREN, ""},
{1, 10, RPAREN, ""},
{1, 12, LBRACE, ""},
{2, 2, RETURN, ""},
{2, 9, NAME, "a"},
{2, 10, PLUS, ""},
{2, 11, NAME, "b"},
{3, 1, RBRACE, ""},
}},
{"_ __ _a _A _0 a0 0a Abc a_b", []Info{
Expand All @@ -164,13 +164,13 @@ func TestAll(t *testing.T) {
{1, 10, FALSE, ""},
{1, 16, FOR, ""},
{1, 20, FUNCTION, ""},
{1, 25, IF, ""},
{1, 28, IN, ""},
{1, 31, NIL, ""},
{1, 35, NOT, ""},
{1, 39, OR, ""},
{1, 42, RETURN, ""},
{1, 49, TRUE, ""},
{1, 29, IF, ""},
{1, 32, IN, ""},
{1, 35, NIL, ""},
{1, 39, NOT, ""},
{1, 43, OR, ""},
{1, 46, RETURN, ""},
{1, 53, TRUE, ""},
}},
{"= == != < <= > >= !!", []Info{
{1, 1, ASSIGN, ""},
Expand Down

0 comments on commit f3b96ea

Please sign in to comment.