mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
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)
|