Skip to content

Commit

Permalink
Add more --horizontal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar committed Aug 1, 2015
1 parent 52a471f commit 03953fe
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/millipede.test.js
Expand Up @@ -178,6 +178,18 @@ describe('millipede', function () {
'╚ ╚ ╚ ╚ ╚ '
].join('\n'));
});

it('should render a reversed horizontal millipede of size 1', function () {
expect(millipede(1, { horizontal: true, reverse: true }).toString()).to.equal([
' ',
' ',
' ',
'══ ╔ ',
' ⊙ ﹋',
' ⊙ ﹏',
'══ ╚ '
].join('\n'));
});
});

describe('mutability', function () {
Expand Down Expand Up @@ -220,5 +232,21 @@ describe('millipede', function () {
' ╔⊙ ⊙╗'
].join('\n'));
});

it('should rotate the millipede, horizontally', function () {
m.horizontal = true;

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

0 comments on commit 03953fe

Please sign in to comment.