aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-19 14:34:41 +0200
committerKim Alvefur <zash@zash.se>2022-10-19 14:34:41 +0200
commit98da2af369892b6f2889d2a00949014f5db3d3a0 (patch)
tree137d511b1cf286735445ea2e4afa7b61b6272809 /spec
parent5bf6e7f501cb572b913e31c29780056c2bb9dccd (diff)
downloadprosody-98da2af369892b6f2889d2a00949014f5db3d3a0.tar.gz
prosody-98da2af369892b6f2889d2a00949014f5db3d3a0.zip
util.smqueue: Improve tests
Result of mutation testing. One mutant remaining.
Diffstat (limited to 'spec')
-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)