diff --git a/foundations/13_palindromes/palindromes.spec.js b/foundations/13_palindromes/palindromes.spec.js index 084edf35557..331b2795697 100644 --- a/foundations/13_palindromes/palindromes.spec.js +++ b/foundations/13_palindromes/palindromes.spec.js @@ -1,9 +1,12 @@ const palindromes = require('./palindromes') describe('palindromes', () => { - test('detects palindrome', () => { + test('detects odd-length palindrome', () => { expect(palindromes('racecar')).toBe(true); }); + test.skip('detects even-length palindrome', () => { + expect(palindromes('abba')).toBe(true); + }); test.skip('detects palindrome with numbers', () => { expect(palindromes('rac3e3car')).toBe(true); }); diff --git a/foundations/13_palindromes/solution/palindromes-solution.spec.js b/foundations/13_palindromes/solution/palindromes-solution.spec.js index 6d67738bea4..012131b5b3d 100644 --- a/foundations/13_palindromes/solution/palindromes-solution.spec.js +++ b/foundations/13_palindromes/solution/palindromes-solution.spec.js @@ -1,9 +1,12 @@ const palindromes = require('./palindromes-solution'); describe('palindromes', () => { - test('detects palindrome', () => { + test('detects odd-length palindrome', () => { expect(palindromes('racecar')).toBe(true); }); + test('detects even-length palindrome', () => { + expect(palindromes('abba')).toBe(true); + }); test('detects palindrome with numbers', () => { expect(palindromes('rac3e3car')).toBe(true); });