testbox 0.1.7

A fast test runner that works out of the box with zero dependencies.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--[[ EXPECTED OUTPUT
📁 prelude.lua
✅ sum
✅ multiply
END EXPECTED OUTPUT --]]

-- OPTIONS: -p 'test/utils_1.lua' -p 'test/utils_2.lua'

test("sum", function()
    expect_equal(sum(1, 2), 3)
end)

test("multiply", function()
    expect_equal(multiply(2, 5), 10)
end)