awesomewm.d.tl/spec/example_with_my_code_spec.tl

11 lines
249 B
Plaintext

local assert = require("luassert")
local utils = require("utils")
describe("test", function()
it("has_item", function()
local t = {1, 2, 3}
assert.equal(utils.has_item(t, 1), 1)
assert.is_nil(utils.has_item(t, 4))
end)
end)