Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 250 Bytes
local lunatest = require "lunatest"
-- This should error out with a more meaningful error message
-- than "./lunatest.lua:608: attempt to index local 'e' (a function value)".
function test_foo()
error(function() return 2 end)
end
lunatest.run()