1 files changed,
19 insertions(+),
0 deletions(-)
Author:
Smirnov Olexander
ss2316544@gmail.com
Committed at:
2022-06-11 17:16:41 +0300
Parent:
149e89e
A
spec/gopher_utils_spec.lua
@@ -0,0 +1,19 @@
+describe("gopher._utils", function() + it("can be requried", function() + require "gopher._utils" + end) + + it(".empty() with non-empty talbe", function() + local empty = require("gopher._utils").empty + local res = empty { first = "1", second = 2 } + + assert.are.same(res, false) + end) + + it(".empty() with empty talbe", function() + local empty = require("gopher._utils").empty + local res = empty {} + + assert.are.same(res, true) + end) +end)