Add 2 new test cases.
This commit is contained in:
@@ -48,6 +48,10 @@ public class CompatibiltyTest extends ScriptDrivenTest {
|
|||||||
runTest("test8");
|
runTest("test8");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testTest9() throws IOException, InterruptedException {
|
||||||
|
runTest("test9");
|
||||||
|
}
|
||||||
|
|
||||||
public void testAutoload() throws IOException, InterruptedException {
|
public void testAutoload() throws IOException, InterruptedException {
|
||||||
runTest("autoload");
|
runTest("autoload");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
print( string.find("1234567890", ".", 0, true) )
|
||||||
print( string.find( 'alo alx 123 b\0o b\0o', '(..*) %1' ) )
|
print( string.find( 'alo alx 123 b\0o b\0o', '(..*) %1' ) )
|
||||||
print( string.find( 'aloALO', '%l*' ) )
|
print( string.find( 'aloALO', '%l*' ) )
|
||||||
print( string.find( ' \n isto <20> assim', '%S%S*' ) )
|
print( string.find( ' \n isto <20> assim', '%S%S*' ) )
|
||||||
|
|||||||
15
src/test/res/test9.lua
Normal file
15
src/test/res/test9.lua
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
local x
|
||||||
|
|
||||||
|
local function g()
|
||||||
|
local a, b, c
|
||||||
|
return a, b, c
|
||||||
|
end
|
||||||
|
|
||||||
|
local function f()
|
||||||
|
print("hello")
|
||||||
|
end
|
||||||
|
|
||||||
|
g()
|
||||||
|
x = ...
|
||||||
|
|
||||||
|
f()
|
||||||
Reference in New Issue
Block a user