Create A Lua Table Of Anonymous Functions
Code
tests_to_run = {
function ()
print("HERE")
end,
function ()
print("THERE")
end
}
for i=1, #tests_to_run do
tests_to_run[i]()
end
tests_to_run = {
function ()
print("HERE")
end,
function ()
print("THERE")
end
}
for i=1, #tests_to_run do
tests_to_run[i]()
end