11 lines
249 B
Plaintext
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)
|