Skip to content

Commit

Permalink
test: Port MultiMap test to Busted
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 1, 2020
1 parent 74a7689 commit 41b6c4c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
14 changes: 14 additions & 0 deletions spec/multimap_spec.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local MultiMap = require("pl.MultiMap")

describe("pl.MultiMap", function ()

it("should hold with multiple values per key", function ()
local map = MultiMap()
map:set('foo', 1)
map:set('bar', 3)
map:set('foo', 2)
local expected = { foo = { 1, 2 }, bar = { 3 } }
assert.is.same(expected, map)
end)

end)
11 changes: 0 additions & 11 deletions tests/test-multimap.lua

This file was deleted.

0 comments on commit 41b6c4c

Please sign in to comment.