Add test to caesar checking negative wraping cornercase
This commit is contained in:
parent
ea595f1d10
commit
deb698c09e
1 changed files with 3 additions and 0 deletions
|
@ -19,4 +19,7 @@ describe('caesar', function() {
|
||||||
xit('works with large shift factors', function() {
|
xit('works with large shift factors', function() {
|
||||||
expect(caesar('Hello, World!', 75)).toEqual('Ebiil, Tloia!');
|
expect(caesar('Hello, World!', 75)).toEqual('Ebiil, Tloia!');
|
||||||
});
|
});
|
||||||
|
xit('works with large negative shift factors', function() {
|
||||||
|
expect(caesar('Hello, World!', -29)).toEqual('Ebiil, Tloia!');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue