Go to file
bas080 5ad053a7db First commit
- License

- Readme containing examples, roadmap and description

- The initial lua test functions and the tests to test itself
2015-02-08 20:59:46 +01:00
LICENSE.md First commit 2015-02-08 20:59:46 +01:00
README.md First commit 2015-02-08 20:59:46 +01:00
init.lua First commit 2015-02-08 20:59:46 +01:00
tests.lua First commit 2015-02-08 20:59:46 +01:00

README.md

Lunit

Write tests for your lua code.

Usage

example taken from the tests.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)

Roadmap

  • deep equals for testing table outputs
  • asynchronous tests