London | 26-ITP-May | Dipa Sarker | Sprint 3 | Practice TDD#1471
London | 26-ITP-May | Dipa Sarker | Sprint 3 | Practice TDD#1471Dipa-Sarker wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
Great suite of test cases, can we think of some more edge cases to test, making sure the function can handle tricky arguments?
There was a problem hiding this comment.
Thank you for your review. I have added several edge cases to the tests. Please let me know if I've understood your question correctly.
There was a problem hiding this comment.
Readability and naming are spot on!
I'm curious about the control flow choices here. Could you share why you opted for the else if chain and wrapped the final return in an else block?
There was a problem hiding this comment.
There are multiple conditions to check that's why I used else if inside if...else statement. I wrapped the final return in else cause none of the above conditions are true for "th", so for "th" else block will execute. That's my thought actually.
Learners, PR Template
Self checklist
Changelist