8000 Add test for strings with numbers · sabs/javascript-exercises@83d3dcd · GitHub
[go: up one dir, main page]

Skip to content

Commit 83d3dcd

Browse files
Add test for strings with numbers
Proposed by @thatblindgeye.
1 parent 8746ce0 commit 83d3dcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

09_palindromes/palindromes.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ describe('palindromes', () => {
1919
test.skip('doesn\'t just always return true', () => {
2020
expect(palindromes('ZZZZ car, a man, a maracaz.')).toBe(false);
2121
});
22+
test('works with numbers in a string', () => {
23+
expect(palindromes('rac3e3car')).toBe(true);
24+
});
2225
});

0 commit comments

Comments
 (0)
0