Skip to content

Commit

Permalink
Test millipede mutability
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar committed Jul 30, 2015
1 parent 64e30b0 commit 9da1224
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/millipede.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,24 @@ describe('millipede', function () {
].join('\n'));
});
});

describe('mutability', function () {
var m = millipede(1);

it('should display a forward millipede of 1', function () {
expect(m.toString()).to.equal([
' ╚⊙ ⊙╝',
' ╚═(███)═╝'
].join('\n'));
});

it('should reverse the millipede', function () {
m.reverse = true;

expect(m.toString()).to.equal([
' ╔═(███)═╗',
' ╔⊙ ⊙╗'
].join('\n'));
});
});
});

0 comments on commit 9da1224

Please sign in to comment.