Simplified Equality
This commit is contained in:
@@ -118,6 +118,7 @@ func TestIfElseExpression(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Log(tt.input)
|
||||
evaluated := testEval(tt.input)
|
||||
integer, ok := tt.expected.(int)
|
||||
if ok {
|
||||
@@ -184,11 +185,11 @@ func TestErrorHandling(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
"5 + true;",
|
||||
"type mismatch: int + bool",
|
||||
"unknown operator: int + bool",
|
||||
},
|
||||
{
|
||||
"5 + true; 5;",
|
||||
"type mismatch: int + bool",
|
||||
"unknown operator: int + bool",
|
||||
},
|
||||
{
|
||||
"-true",
|
||||
|
||||
Reference in New Issue
Block a user