Add test for strings with numbers

Proposed by @thatblindgeye.
This commit is contained in:
Telcean Marius-Andrei 2023-01-28 16:26:19 +02:00 committed by GitHub
parent 8746ce056a
commit 83d3dcd1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -19,4 +19,7 @@ describe('palindromes', () => {
test.skip('doesn\'t just always return true', () => {
expect(palindromes('ZZZZ car, a man, a maracaz.')).toBe(false);
});
test('works with numbers in a string', () => {
expect(palindromes('rac3e3car')).toBe(true);
});
});