Skip to content

Inconsistency in Python Test for Bob Exercise #184

@ishan-marikar

Description

@ishan-marikar

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions