Add implicit LString to number coercions.
This commit is contained in:
@@ -51,6 +51,10 @@ public class LuaJTest extends TestCase {
|
||||
runTest( "boolean" );
|
||||
}
|
||||
|
||||
public void testCoercions() throws IOException, InterruptedException {
|
||||
runTest( "coercions" );
|
||||
}
|
||||
|
||||
public void testCompare() throws IOException, InterruptedException {
|
||||
runTest( "compare" );
|
||||
}
|
||||
|
||||
5
src/test/res/coercions.lua
Normal file
5
src/test/res/coercions.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
print("5.0"+3.1)
|
||||
print(4+"7.5")
|
||||
print(3.14*" 2.75")
|
||||
print("-33"/"11")
|
||||
print(-"-5")
|
||||
BIN
src/test/res/coercions.luac
Normal file
BIN
src/test/res/coercions.luac
Normal file
Binary file not shown.
Reference in New Issue
Block a user