Skip to content

Commit cad7a16

Browse files
committed
⛷️ test changes ⛷️
1 parent 5ca3847 commit cad7a16

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler/compiler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ func TestStringExpressions(t *testing.T) {
437437
},
438438
},
439439
{
440-
input: `"mon" + "key"`,
441-
expectedConstants: []interface{}{"mon", "key"},
440+
input: `"s" + "lang"`,
441+
expectedConstants: []interface{}{"s", "lang"},
442442
expectedInstructions: []code.Instructions{
443443
code.Make(code.OpConstant, 0),
444444
code.Make(code.OpConstant, 1),

evaluator/evaluator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ if (10 > 1) {
214214
"identifier not found: foobar",
215215
},
216216
{
217-
`{"name": "Monkey"}[fn(x) { x }];`,
217+
`{"name": "slang"}[fn(x) { x }];`,
218218
"unusable as hash key: FUNCTION",
219219
},
220220
{

vm/vm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ func TestGlobalLetStatements(t *testing.T) {
9797
func TestStringExpressions(t *testing.T) {
9898
tests := []vmTestCase{
9999
{`"slang"`, "slang"},
100-
{`"mon" + "key"`, "slang"},
101-
{`"mon" + "key" + "banana"`, "slangbanana"},
100+
{`"s" + "lang"`, "slang"},
101+
{`"s" + "lang" + "banana"`, "slangbanana"},
102102
}
103103

104104
runVmTests(t, tests)

0 commit comments

Comments
 (0)