server
Some checks failed
Build / build (push) Failing after 6m4s
Test / build (push) Failing after 6m33s

This commit is contained in:
Chuck Smith
2024-04-02 12:21:41 -04:00
parent 862119e90e
commit 4c9ec5aaaa
77 changed files with 1181 additions and 244 deletions

View File

@@ -3,6 +3,7 @@ package evaluator
import (
"errors"
"github.com/stretchr/testify/assert"
"monkey/internal/context"
"monkey/internal/lexer"
"monkey/internal/object"
"monkey/internal/parser"
@@ -799,7 +800,7 @@ func testEval(input string) object.Object {
program := p.ParseProgram()
env := object.NewEnvironment()
return Eval(program, env)
return Eval(program, context.New(), env)
}
func testIntegerObject(t *testing.T, obj object.Object, expected int64) bool {