File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,19 @@ func (l *LexerTests) TestIllegalToken() {
3939}
4040
4141func (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 )
You can’t perform that action at this time.
0 commit comments