The previous test cases would consider any shouting statement with a question mark to be a shouting question. This is not the case as a question must end with a question mark. This test case covers this scenario.
Opened PR #2661 and was directed here so hope you can help!
Thanks for getting back IsaacG, this would work given the user is not āshoutingā (all caps) in this case.
Given the test case I gave of DO LIONS EAT PEOPLE? AHHHHH.
The sentence does not end with a question mark but is still shouting. Therefore should output Whoa, chill out! because it is not a question.
But given the current test cases there is no way to ensure that will happen when all CAPS. This is some example code I mentored earlier where I noticed this passing.
...
if "?" in hey_bob and hey_bob.isupper():
return "Calm down, I know what I'm doing!"
if hey_bob.isupper():
return "Whoa, chill out!"
...
This should fail as it would respond with Calm down, I know what I'm doing!. In reality this code passed all current test cases, my proposed test case should prevent this.
Iām also in favor. Thatās the usual three maintainers approving that we like to do before an problem-specs PR is welcomed. I think we can reopen the PR if there arenāt any objections.