Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Practice TDD#1153
Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Practice TDD#1153Richiealx wants to merge 3 commits intoCodeYourFuture:mainfrom
Conversation
cjyuan
left a comment
There was a problem hiding this comment.
There are 6 files to be modified in this exercise. Currently there are only 2 modified files on this branch.
Hi @cjyuan, Thanks for the feedback. I have now completed the Sprint-3/2-practice-tdd task across all 6 files in the folder:
I ran:
and all tests passed. I pushed the fixes to the same branch. |
There was a problem hiding this comment.
These are also some good cases:
- A case to show that the match is case sensitive
- A case to show that the function is expected to work also for non-alphabets
|
Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it. |
Learners, PR Template
Self checklist
Changelist
This PR completes the Sprint 3 Practice TDD coursework.
Implemented functionality
getOrdinalNumberfollowing TDD principles.stfor numbers ending in 1 (except 11)ndfor numbers ending in 2 (except 12)rdfor numbers ending in 3 (except 13)thfor all other numbers.Tests
Jest tests were written and run to verify the implementation.
Tests executed using: