Repository navigation
London|26-ITP-Sep|Abdennour Hachemi|Sprint 2 |Practice TDD - #1701
AbdennourHachemi wants to merge 12 commits into
Conversation
|
Thanks for working on this..The core exercise implementations look solid overall, but i can see one blocking issue regarding version control configuration that needs to be addressed before merging.
practice-tdd/get-ordinal-number.js: The regex logic works, but switching to numeric modulo operations (num % 100 and num % 10) would make the branching much clearer and easier to maintain. practice-tdd/get-ordinal-number.test.js: Consider adding test cases for 3-digit teen exceptions (e.g., 111, 112, 113) to ensure the suffix rules scale properly. practice-tdd/count.test.js: Minor nit - @jest/globals imports aren't needed since Jest provides them globally, and there's a small typo in numberOfOcurrence (numberOfOccurrence). Once package.json and package-lock.json are un-ignored and the error-throwing behavior is updated, this should be good to go. |
|
Thanks @valentina , i have fixed my code according to your review . please have a look again and see if anything else needs correction. |
Self checklist
Task code
CYF-1060