Hi. I've programmed in Java before in Eclipse.
I'm trying to set up Eclipse so I can run/debug Lua. I set up a simple test, but am unable to run it.
I've loaded luaunit and MoreUnit into Eclipse. (MoreUnit looked promising, but the "generate" command doesn't seem to be implemented.)
I have two files:
main.lua:
-- Some super function to test
function my_super_function( arg1, arg2 ) return arg1 + arg2 end
function plus (a, b) return a+b end
function minus (a, b) return a-b end
function times (a, b) return a*b end
local function main()
print("hello world!")
-- LuaUnit:run()
end
main()
main_Test.lua:
luaunit = require('luaunit')
function test_plus()
expected = 5
actual = plus(2,3)
assertEquals(expected, actual, "test_plus")
end
os.exit(luaunit.LuaUnit.run(),close)
When I try to run the test file, I get the following on the console:
<terminated> <abnormal exit code:-1073741571> LuaTest01_main_Test [Lua Application] C:\Program Files\Java\jdk-13.0.1\bin\java (Jan 8, 2021, 4:46:35)