summaryrefslogtreecommitdiffstats
path: root/tests/config/tapered/test/ok-nok-test.lua
blob: c2a0b4de9fa1863d474598f832911c73fb9300df (plain)
1
2
3
4
5
6
7
8
9
10
11
package.path = '../src/?.lua;' .. package.path
local tap = require 'tapered'

--- ok and nok
-- ok(exp, [msg]) tests if exp returns (or is) a truthy value.
-- nok(exp, [msg]) tests if exp returns (or is) a falsey value.
tap.ok(true, 'ok - ok(true)')
tap.ok(false, 'not ok - ok(false)')
tap.nok(false, 'ok - nok(false)')
tap.nok(true, 'not ok - nok(true)')
tap.done()