Add 2 new test cases.

This commit is contained in:
Ian Farmer
2009-04-27 20:16:06 +00:00
parent 363ea0dfb1
commit fbaeec9fe7
3 changed files with 20 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ public class CompatibiltyTest extends ScriptDrivenTest {
runTest("test8");
}
public void testTest9() throws IOException, InterruptedException {
runTest("test9");
}
public void testAutoload() throws IOException, InterruptedException {
runTest("autoload");
}

View File

@@ -1,3 +1,4 @@
print( string.find("1234567890", ".", 0, true) )
print( string.find( 'alo alx 123 b\0o b\0o', '(..*) %1' ) )
print( string.find( 'aloALO', '%l*' ) )
print( string.find( ' \n isto <20> assim', '%S%S*' ) )

15
src/test/res/test9.lua Normal file
View 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()