mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
4023df7e60
* Change NTest so it can run tests on the host emulating node.task.post * Add executing first host test * Regression: fix luaL_typerror
7 lines
240 B
Lua
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)
|