Merge pull request #320 from mariustelcean96/patch-2
09_palindromes: Add test for strings with numbers
This commit is contained in:
commit
34d63cc59d
1 changed files with 3 additions and 0 deletions
|
@ -19,4 +19,7 @@ describe('palindromes', () => {
|
||||||
test.skip('doesn\'t just always return true', () => {
|
test.skip('doesn\'t just always return true', () => {
|
||||||
expect(palindromes('ZZZZ car, a man, a maracaz.')).toBe(false);
|
expect(palindromes('ZZZZ car, a man, a maracaz.')).toBe(false);
|
||||||
});
|
});
|
||||||
|
test('works with numbers in a string', () => {
|
||||||
|
expect(palindromes('rac3e3car')).toBe(true);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue