# HG changeset patch # User Kim Alvefur # Date 1666182881 -7200 # Node ID 6163c8b17ea9723a9550b22774d01c485b997b2a # Parent 4d5549de27e69c9492182625854b5b7214f230e2 util.smqueue: Improve tests Result of mutation testing. One mutant remaining. diff -r 4d5549de27e6 -r 6163c8b17ea9 spec/util_smqueue_spec.lua --- 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)