Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AvicennaJr committed Oct 15, 2023
1 parent e599e3d commit 9066ba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion evaluator/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ kama (10 > 1) {
},
{
`{"jina": "Avi"}[unda(x) {x}];`,
"Mstari 1: Samahani, UNDO (FUNCTION) haitumiki kama key",
"Mstari 1: Samahani, UNDO (FUNCTION) haitumiki kama ufunguo",
},
}

Expand Down
12 changes: 6 additions & 6 deletions evaluator/infix.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func evalInfixExpression(operator string, left, right object.Object, line int) o
line, left.Type(), operator, right.Type())

default:
return newError("Mstari %d: Operesheni Haielweki: %s %s %s",
return newError("Mstari %d: Operesheni Haieleweki: %s %s %s",
line, left.Type(), operator, right.Type())
}
}
Expand Down Expand Up @@ -132,7 +132,7 @@ func evalFloatIntegerInfixExpression(operator string, left, right object.Object,
case "!=":
return nativeBoolToBooleanObject(leftVal != rightVal)
default:
return newError("Mstari %d: Operesheni Haielweki: %s %s %s",
return newError("Mstari %d: Operesheni Haieleweki: %s %s %s",
line, left.Type(), operator, right.Type())
}

Expand All @@ -156,7 +156,7 @@ func evalStringInfixExpression(operator string, left, right object.Object, line
case "!=":
return nativeBoolToBooleanObject(leftVal != rightVal)
default:
return newError("Mstari %d: Operesheni Haielweki: %s %s %s", line, left.Type(), operator, right.Type())
return newError("Mstari %d: Operesheni Haieleweki: %s %s %s", line, left.Type(), operator, right.Type())
}
}

Expand All @@ -170,7 +170,7 @@ func evalBooleanInfixExpression(operator string, left, right object.Object, line
case "||":
return nativeBoolToBooleanObject(leftVal || rightVal)
default:
return newError("Mstari %d: Operesheni Haielweki: %s %s %s", line, left.Type(), operator, right.Type())
return newError("Mstari %d: Operesheni Haieleweki: %s %s %s", line, left.Type(), operator, right.Type())
}
}

Expand Down Expand Up @@ -202,7 +202,7 @@ func evalFloatInfixExpression(operator string, left, right object.Object, line i
case "!=":
return nativeBoolToBooleanObject(leftVal != rightVal)
default:
return newError("Mstari %d: Operesheni Haielweki: %s %s %s",
return newError("Mstari %d: Operesheni Haieleweki: %s %s %s",
line, left.Type(), operator, right.Type())
}
}
Expand Down Expand Up @@ -242,7 +242,7 @@ func evalIntegerInfixExpression(operator string, left, right object.Object, line
case "!=":
return nativeBoolToBooleanObject(leftVal != rightVal)
default:
return newError("Mstari %d: Operesheni Haielweki: %s %s %s",
return newError("Mstari %d: Operesheni Haieleweki: %s %s %s",
line, left.Type(), operator, right.Type())
}
}

0 comments on commit 9066ba6

Please sign in to comment.