From 84c4a52c439fc85d5046ea1ebad226e458faf20c Mon Sep 17 00:00:00 2001 From: wout Date: Mon, 1 Jul 2013 21:05:39 +0100 Subject: Sets accept multiple elements at once --- spec/spec/set.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') diff --git a/spec/spec/set.js b/spec/spec/set.js index 768fcd9..03b8f31 100644 --- a/spec/spec/set.js +++ b/spec/spec/set.js @@ -27,6 +27,11 @@ describe('Set', function() { expect(set.valueOf()).toEqual([e1,e2,e3]) expect(set.members.length).toBe(3) }) + it('accepts multiple elements at once', function() { + set.add(e1, e2, e3, e4, e5) + expect(set.valueOf()).toEqual([e1, e2, e3, e4, e5]) + expect(set.members.length).toBe(5) + }) }) describe('remove()', function() { -- cgit v1.2.3