class Math {
static add(a, b) {
return a + b
}
}
var result = Math.add(10,13)
System.print("add = %(result)")
if (result != 23) {
Fiber.abort("result should be 23, but is: %(result)")
}
When I load this script with wrenInterpret it fails with: result should be 23, but is: 23,13
It works, if I add a whitespace between the arguments like so: Math.add(10, 13)
If i run this script with bin/wren_test everything works as expected. Both with and without the whitespace.
When I load this script with wrenInterpret it fails with:
result should be 23, but is: 23,13It works, if I add a whitespace between the arguments like so:
Math.add(10, 13)If i run this script with
bin/wren_testeverything works as expected. Both with and without the whitespace.