-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I was going coding through the exercises and I noticed that I couldn't really pass a certain test:
def test_calmly_speaking_with_umlauts(self):
self.assertEqual(
'Whatever.', bob.hey('ÜMLäÜTS!')
)The code that I used:
if what.isupper() or what[-1:] == "!" :
return "Whoa, chill out!"According to the readme, if we yell at him (assuming that by yelling, you mean that the input either ends with an exclamation mark or is in upper case), Bob should respond with 'Whoa, chill out!'. Seeing as the input for the above test both contains uppercase letters and an exclamation mark, I don't understand why the expected response would be 'Whatever.'.
.. anyways, @kytrinyx, I really like the Exercism project and your book. Wish you all the best c:
Metadata
Metadata
Assignees
Labels
No labels