Debian Codegraph @

tests/config/tapered/test/ok-nok-test.lua

raw
1 package.path = '../src/?.lua;' .. package.path
2 local tap = require 'tapered'
3
4 --- ok and nok
5 -- ok(exp, [msg]) tests if exp returns (or is) a truthy value.
6 -- nok(exp, [msg]) tests if exp returns (or is) a falsey value.
7 tap.ok(true, 'ok - ok(true)')
8 tap.ok(false, 'not ok - ok(false)')
9 tap.nok(false, 'ok - nok(false)')
10 tap.nok(true, 'not ok - nok(true)')
11 tap.done()