New autoload and math test cases. Currently autoload does not work because

the GETGLOBAL instruction does not handle the case where a metatable method
is invoked.
This commit is contained in:
Ian Farmer
2007-07-21 04:44:22 +00:00
parent b4ac032fd7
commit e1d6ddf99c
6 changed files with 30 additions and 0 deletions

7
src/test/res/math.lua Normal file
View File

@@ -0,0 +1,7 @@
local mathClass = luajava.bindClass("java.lang.Math")
local function sqrt(x)
return mathClass:sqrt(x)
end
return { sqrt = sqrt; pi = mathClass.PI }