forked from Mirror/wren
Test string concatenation.
This commit is contained in:
1
test/string/concatenation.wren
Normal file
1
test/string/concatenation.wren
Normal file
@ -0,0 +1 @@
|
||||
IO.print("a" + "b") // expect: ab
|
||||
1
test/string/concatenation_wrong_arg_type.wren
Normal file
1
test/string/concatenation_wrong_arg_type.wren
Normal file
@ -0,0 +1 @@
|
||||
IO.print("a" + 123) // expect runtime error: Right operand must be a string.
|
||||
Reference in New Issue
Block a user