Software /
code /
prosody
Diff
spec/util_smqueue_spec.lua @ 12802:4a8740e01813
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 12 Dec 2022 07:10:54 +0100 |
parent | 12778:6163c8b17ea9 |
line wrap: on
line diff
--- a/spec/util_smqueue_spec.lua Mon Dec 12 20:40:23 2022 +0100 +++ b/spec/util_smqueue_spec.lua Mon Dec 12 07:10:54 2022 +0100 @@ -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)