Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Oct 6, 2024
1 parent 1041c35 commit 8e17c5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion evaluator/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func TestLoopExpression(t *testing.T) {
"loop": {
"for": "$i",
"from": 1,
"to": 3,
"until": 3,
"do": {
"command": {
"symbol": "+",
Expand Down
4 changes: 2 additions & 2 deletions lexer/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func TestSingleProgram(t *testing.T) {
"loop": {
"for": "$i",
"from": 0,
"to": 10,
"until": 10,
"do": {
"command": {
"symbol": "==",
Expand Down Expand Up @@ -673,7 +673,7 @@ func TestSingleProgram(t *testing.T) {
{Type: token.INT, Literal: "0"},
{Type: token.COMMA, Literal: ","},
{Type: token.DOUBLE_QUOTE, Literal: "\""},
{Type: token.STRING, Literal: "to"},
{Type: token.STRING, Literal: "until"},
{Type: token.DOUBLE_QUOTE, Literal: "\""},
{Type: token.COLON, Literal: ":"},
{Type: token.INT, Literal: "10"},
Expand Down
6 changes: 3 additions & 3 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ func TestLoopExpression(t *testing.T) {
"loop": {
"for": "$i",
"from": 0,
"to": 10,
"until": 10,
"do": {
"command": {
"symbol": "+",
Expand Down Expand Up @@ -1161,8 +1161,8 @@ func TestLoopExpression(t *testing.T) {
},
{
Key: &ast.StringLiteral{
Token: token.Token{Type: token.STRING, Literal: "to"},
Value: "to",
Token: token.Token{Type: token.STRING, Literal: "until"},
Value: "until",
},
Value: &ast.IntegerLiteral{
Token: token.Token{Type: token.INT, Literal: "10"},
Expand Down

0 comments on commit 8e17c5e

Please sign in to comment.