mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-11 18:55:59 +09:00
Add test for strings with numbers
Proposed by @thatblindgeye.
This commit is contained in:
committed by
GitHub
parent
8746ce056a
commit
83d3dcd1dd
@@ -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);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user