File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -437,8 +437,8 @@ func TestStringExpressions(t *testing.T) {
437
437
},
438
438
},
439
439
{
440
- input : `"mon " + "key "` ,
441
- expectedConstants : []interface {}{"mon " , "key " },
440
+ input : `"s " + "lang "` ,
441
+ expectedConstants : []interface {}{"s " , "lang " },
442
442
expectedInstructions : []code.Instructions {
443
443
code .Make (code .OpConstant , 0 ),
444
444
code .Make (code .OpConstant , 1 ),
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ if (10 > 1) {
214
214
"identifier not found: foobar" ,
215
215
},
216
216
{
217
- `{"name": "Monkey "}[fn(x) { x }];` ,
217
+ `{"name": "slang "}[fn(x) { x }];` ,
218
218
"unusable as hash key: FUNCTION" ,
219
219
},
220
220
{
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ func TestGlobalLetStatements(t *testing.T) {
97
97
func TestStringExpressions (t * testing.T ) {
98
98
tests := []vmTestCase {
99
99
{`"slang"` , "slang" },
100
- {`"mon " + "key "` , "slang" },
101
- {`"mon " + "key " + "banana"` , "slangbanana" },
100
+ {`"s " + "lang "` , "slang" },
101
+ {`"s " + "lang " + "banana"` , "slangbanana" },
102
102
}
103
103
104
104
runVmTests (t , tests )
You can’t perform that action at this time.
0 commit comments