Module lib.test.luaunit

general utility functions

Functions

assertEquals (actual, expected, extra_msg_or_nil, doDeepAnalysis) Equality assertions
assertStrContains (str, sub, isPattern, extra_msg_or_nil) String assertion
assertEvalToTrue (value, extra_msg_or_nil) Type assertions
assertIsNaN (value, extra_msg_or_nil) Scientific assertions

Tables

LuaUnit class LuaUnit


Functions

assertEquals (actual, expected, extra_msg_or_nil, doDeepAnalysis)
Equality assertions

Parameters:

  • actual
  • expected
  • extra_msg_or_nil
  • doDeepAnalysis
assertStrContains (str, sub, isPattern, extra_msg_or_nil)
String assertion

Parameters:

  • str
  • sub
  • isPattern
  • extra_msg_or_nil this relies on lua string.find function a string always contains the empty string
assertEvalToTrue (value, extra_msg_or_nil)
Type assertions

Parameters:

  • value
  • extra_msg_or_nil
assertIsNaN (value, extra_msg_or_nil)
Scientific assertions

Parameters:

  • value
  • extra_msg_or_nil

Tables

LuaUnit
class LuaUnit

Fields:

  • outputType
  • verbosity
  • __class__
generated by LDoc 1.4.6 Last updated 2021-01-11 12:10:11