Cape Town| 26-ITP-May|Enice Mutanda| Sprint 3 |Practice-Tdd - #1531
Cape Town| 26-ITP-May|Enice Mutanda| Sprint 3 |Practice-Tdd#1531Enice-Codes wants to merge 14 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
hey-hammad
left a comment
There was a problem hiding this comment.
Please review the exercise again and fix the implementation. Thanks
| } | ||
|
|
||
| module.exports = countChar; | ||
| test( "should count multiple occurrences of a character ", function(){ |
There was a problem hiding this comment.
all test are supposed to be in the .test.js file only
| // Given a string `str` and a single character `char` to search for, | ||
| // When the countChar function is called with these inputs, | ||
| // Then it should: | ||
| function CountChar(str, char) { |
There was a problem hiding this comment.
logic should be in .js file, here it should in the count.js file.
| @@ -3,3 +3,13 @@ function getOrdinalNumber(num) { | |||
There was a problem hiding this comment.
please implement the code logic for the function here.
There was a problem hiding this comment.
hi @hey-hammad , i made corrections to the file and tested the code and it passed before pushing it on github.
| expect(getOrdinalNumber(23)).toEqual("23rd"); | ||
| expect(getOrdinalNumber(143)).toEqual("143rd"); | ||
| }); | ||
|
No newline at end of file |
There was a problem hiding this comment.
consider adding more test cases regarding the edge case th i.e 11th, 12th etc
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Closing PR because the May ITP run has finished. Feel free to re-open if you're still working on it. |
Self checklist
Changelist
Completed the card value exercise
the dependent file exercise
the dead code