Software /
code /
prosody
Diff
spec/util_smqueue_spec.lua @ 12778:6163c8b17ea9
util.smqueue: Improve tests
Result of mutation testing. One mutant remaining.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 19 Oct 2022 14:34:41 +0200 |
parent | 12058:4860da718e87 |
line wrap: on
line diff
--- a/spec/util_smqueue_spec.lua Wed Oct 19 14:21:13 2022 +0200 +++ b/spec/util_smqueue_spec.lua Wed Oct 19 14:34:41 2022 +0200 @@ -5,6 +5,9 @@ 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)