aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_smqueue_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/util_smqueue_spec.lua')
-rw-r--r--spec/util_smqueue_spec.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/util_smqueue_spec.lua b/spec/util_smqueue_spec.lua
index 0a02a60b..858b99c0 100644
--- a/spec/util_smqueue_spec.lua
+++ b/spec/util_smqueue_spec.lua
@@ -5,6 +5,9 @@ describe("util.smqueue", function()
describe("#new()", function()
it("should work", function()
+ assert.has_error(function () smqueue.new(-1) end);
+ assert.has_error(function () smqueue.new(0) end);
+ assert.not_has_error(function () smqueue.new(1) end);
local q = smqueue.new(10);
assert.truthy(q);
end)