Debian Codegraph @

tests/config/tapered/test/pass-fail-test.lua

raw
1 package.path = '../src/?.lua;' .. package.path
2 local tap = require 'tapered'
3
4 --- pass and fail
5 -- pass([msg]) is not a test. It always passes.
6 -- fail([msg]) is not a test. It always fails.
7 -- These two methods are useful for checking the basic setup of a test suite.
8 -- Also, pass can be used as a quasi-skip and fail as a quasi-TODO.
9 tap.pass('ok - No test: just pass')
10 tap.fail('not ok - No test: just fail')
11 tap.done()