summaryrefslogtreecommitdiff
path: root/spec/multiset_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/multiset_spec.lua')
-rw-r--r--spec/multiset_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/multiset_spec.lua b/spec/multiset_spec.lua
index 7639066..abdeb94 100644
--- a/spec/multiset_spec.lua
+++ b/spec/multiset_spec.lua
@@ -95,6 +95,13 @@ describe("Values", function()
it("are not counted after removal", function()
assert.are.equal(1, #set)
end)
+
+ it("are removed only once", function()
+ set:remove"will-be-removed"
+ assert.is_false(set:has"will-be-removed")
+ set:add"will-be-removed"
+ assert.is_true(set:has"will-be-removed")
+ end)
end)