Skip to content

Commit 79c2f7a

Browse files
committed
fix failing tests.
1 parent ac61e0b commit 79c2f7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lexer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ func (l *LexerTests) TestIllegalToken() {
3939
}
4040

4141
func (l *LexerTests) TestOneCharacterOperator() {
42-
source := "+=-/*<>!%"
42+
source := "+-/*<>!%="
4343
tokens := l.loadTokens(utf8.RuneCountInString(source), source)
4444

4545
expectedTokens := []src.Token{
4646
{Token_type: src.PLUS, Literal: "+"},
47-
{Token_type: src.ASSING, Literal: "="},
4847
{Token_type: src.MINUS, Literal: "-"},
4948
{Token_type: src.DIVISION, Literal: "/"},
5049
{Token_type: src.TIMES, Literal: "*"},
5150
{Token_type: src.LT, Literal: "<"},
5251
{Token_type: src.GT, Literal: ">"},
5352
{Token_type: src.NOT, Literal: "!"},
5453
{Token_type: src.MOD, Literal: "%"},
54+
{Token_type: src.ASSING, Literal: "="},
5555
}
5656

5757
l.Assert().Equal(expectedTokens, tokens)

0 commit comments

Comments
 (0)