effil/tests/lua/type.lua
Ilia 7947d7af17 From luaunit to u-test (#46)
From luaunit to u-test
2017-06-10 14:13:31 +03:00

10 lines
334 B
Lua

require "bootstrap-tests"
test.type = function()
test.equal(effil.type(1), "number")
test.equal(effil.type("string"), "string")
test.equal(effil.type(effil.table()), "effil.table")
test.equal(effil.type(effil.channel()), "effil.channel")
test.equal(effil.type(effil.thread(function() end)()), "effil.thread")
end