testbox 0.1.4

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
16
17
18
--[[ EXPECTED OUTPUT
📁 expect_equal.lua
✅ test 1 equals 1
❌ test 1 equals 2
Not equal!
Left:  1
Right: 2
END EXPECTED OUTPUT --]]

-- EXIT CODE: 1

test("test 1 equals 1", function()
    expect_equal(1, 1)
end)

test("test 1 equals 2", function()
    expect_equal(1, 2)
end)