Files
learn_enough_javascript_cod…/Listing_8.16.text
T
2022-01-12 14:58:42 -08:00

37 lines
803 B
Plaintext

$ npm test
Phrase
#palindrome
✓ should return false for a non-palindrome
✓ should return true for a plain palindrome
✓ should return true for a mixed-case palindrome
1) should return true for a palindrome with punctuation
#letters
2) should return only letters
3 passing (9ms)
2 failing
1) Phrase
#palindrome
should return true for a palindrome with punctuation:
AssertionError [ERR_ASSERTION]: false == true
+ expected - actual
-false
+true
at Context.<anonymous> (test/test.js:25:7)
2) Phrase
#letters
should return only letters:
AssertionError [ERR_ASSERTION]: 'Madam, I\'m Adam.' === 'MadamImAdam'
+ expected - actual
-Madam, I'm Adam.
+MadamImAdam