- License - Readme containing examples, roadmap and description - The initial lua test functions and the tests to test itself
16 lines
442 B
Lua
16 lines
442 B
Lua
lunit.tests( 'lunit', function( unit )
|
|
|
|
unit.ok( true, 'true is ok')
|
|
unit.ok( 'string', 'string is ok')
|
|
unit.ok( '', 'empty string is ok')
|
|
unit.ok( {}, 'table is ok')
|
|
unit.ok( not nil, 'nil is not ok')
|
|
unit.ok( not false, 'false is not ok')
|
|
|
|
unit.equal( true, true, 'equals true')
|
|
unit.equal( false, false, 'equals false')
|
|
unit.equal( 'hello', 'hello', 'equals string')
|
|
unit.equal( type(''), 'string', 'check type')
|
|
|
|
end)
|