nodemcu-firmware/tests/NTest_lua.lua
Gregor Hartmann 4023df7e60
fix regression in luaL_typerror and Change NTest so it can run tests on the host emulating node.task.post (#3357)
* Change NTest so it can run tests on the host emulating node.task.post
* Add executing first host test
* Regression: fix luaL_typerror
2021-01-09 22:25:22 +01:00

7 lines
240 B
Lua

local N = require "NTest" ("Lua detail tests")
N.test('typeerror', function()
fail(function() math.abs("") end, "number expected, got string", "string")
fail(function() math.abs() end, "number expected, got no value", "no value")
end)