From 83d3dcd1ddffcf6c0a5e7374d2e5f9d850fa1050 Mon Sep 17 00:00:00 2001 From: Telcean Marius-Andrei <80281030+mariustelcean96@users.noreply.github.com> Date: Sat, 28 Jan 2023 16:26:19 +0200 Subject: [PATCH] Add test for strings with numbers Proposed by @thatblindgeye. --- 09_palindromes/palindromes.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/09_palindromes/palindromes.spec.js b/09_palindromes/palindromes.spec.js index 6e14ed1..9c039c7 100644 --- a/09_palindromes/palindromes.spec.js +++ b/09_palindromes/palindromes.spec.js @@ -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); + }); });