diff options
author | Kim Alvefur <zash@zash.se> | 2022-10-19 14:34:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-10-19 14:34:41 +0200 |
commit | 98da2af369892b6f2889d2a00949014f5db3d3a0 (patch) | |
tree | 137d511b1cf286735445ea2e4afa7b61b6272809 | |
parent | 5bf6e7f501cb572b913e31c29780056c2bb9dccd (diff) | |
download | prosody-98da2af369892b6f2889d2a00949014f5db3d3a0.tar.gz prosody-98da2af369892b6f2889d2a00949014f5db3d3a0.zip |
util.smqueue: Improve tests
Result of mutation testing. One mutant remaining.
-rw-r--r-- | spec/util_smqueue_spec.lua | 3 |
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) |