Skip to content

Commit

Permalink
fix parser_test for the change of equation symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Sep 26, 2024
1 parent d651c26 commit 070733e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,15 @@ func TestCommand(t *testing.T) {
input: `
{
"command": {
"symbol": "=",
"symbol": "==",
"args": [1, 2]
}
}`,
expected: &ast.CommandObject{
Token: token.Token{Type: token.COMMAND, Literal: "command"},
Symbol: &ast.Symbol{
Token: token.Token{Type: token.SYMBOL, Literal: "="},
Value: "=",
Token: token.Token{Type: token.SYMBOL, Literal: "=="},
Value: "==",
},
Args: []ast.Expression{
&ast.IntegerLiteral{
Expand Down Expand Up @@ -434,7 +434,7 @@ func TestIfExpression(t *testing.T) {
"if": {
"cond": {
"command": {
"symbol": "=",
"symbol": "==",
"args": [1, 2]
}
},
Expand All @@ -457,8 +457,8 @@ func TestIfExpression(t *testing.T) {
Condition: &ast.CommandObject{
Token: token.Token{Type: token.COMMAND, Literal: "command"},
Symbol: &ast.Symbol{
Token: token.Token{Type: token.SYMBOL, Literal: "="},
Value: "=",
Token: token.Token{Type: token.SYMBOL, Literal: "=="},
Value: "==",
},
Args: []ast.Expression{
&ast.IntegerLiteral{
Expand Down

0 comments on commit 070733e

Please sign in to comment.