NTest_lua.lua 240 B

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