Simplified Equality
Some checks failed
Build / build (push) Successful in 10m48s
Test / build (push) Failing after 17m11s

This commit is contained in:
Chuck Smith
2024-03-24 17:11:48 -04:00
parent fea9fb9f64
commit 1c99d2198b
11 changed files with 109 additions and 133 deletions

View File

@@ -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",