Fix for bug #20

master
Dmitry Baranovskiy 2013-09-19 22:09:06 +10:00
parent d599b39e3d
commit c9103b8b04
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ describe("Set methods", function () {
var rect2 = s.rect(10, 20, 30, 40); var rect2 = s.rect(10, 20, 30, 40);
var rect3 = s.rect(10, 20, 30, 40); var rect3 = s.rect(10, 20, 30, 40);
var rect4 = s.rect(10, 20, 30, 40); var rect4 = s.rect(10, 20, 30, 40);
var set = Savage.set(rect1, rect2, rect3); var set = Savage.set(rect1, rect2, rect3, rect4);
var removedSet = set.splice(1, 2); var removedSet = set.splice(1, 2);
expect(set.length).to.be(2); expect(set.length).to.be(2);
expect(set[0]).to.be(rect1); expect(set[0]).to.be(rect1);
@ -83,7 +83,7 @@ describe("Set methods", function () {
expect(removedSet.length).to.be(2); expect(removedSet.length).to.be(2);
expect(removedSet[0]).to.be(rect2); expect(removedSet[0]).to.be(rect2);
expect(removedSet[1]).to.be(rect3); expect(removedSet[1]).to.be(rect3);
emptySet = set.splice(0, 0); var emptySet = set.splice(0, 0);
expect(set.length).to.be(2); expect(set.length).to.be(2);
expect(emptySet.length).to.be(0); expect(emptySet.length).to.be(0);
}); });