Repository navigation
Manchester | Precious Moses | 26-ITP-Sep | Sprint 2 | Practice-TDD - #1666
moses77-boop wants to merge 132 commits into
Conversation
… and period handling
…urate time formatting
…alNumber function
…revent negative values
…and ensure negative count check is performed at the start
hackertainment
left a comment
There was a problem hiding this comment.
Generally good work. Just aware not to commit package.json and package-lock.json into the repo next time. If you don't know how to choose specific file to stage before commit, please ask a volunteer on Saturday class. Thank you.
| const getlastDigit = num % 10; | ||
| const getlastTwoDigit = num % 100; |
There was a problem hiding this comment.
Usually we will just use verb for function names, so a better variable names would be lastDigit and lastTwoDigit respectively.
There was a problem hiding this comment.
Your test cases are correct. Just for you to think a little bit more, besides const str = "hello", what special string should also be added to each of the test cases?
There was a problem hiding this comment.
Thanks for the feedback!
I have refactored my code to include special string case.
|
Congratulation, you have completed this PR successfully. |
Self checklist
Task code
CYF-1060
Changelist
This PR contains Test-Development Driven (TDD) concepts.