Sheffield | ITP-Jan-26| Mona_Eltantawy | Sprint 3 | Sprint 3/ implement and werite#1280
Sheffield | ITP-Jan-26| Mona_Eltantawy | Sprint 3 | Sprint 3/ implement and werite#1280Mona-Eltantawy wants to merge 4 commits intoCodeYourFuture:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| else if (angle===90) { | ||
| return 'Right angle'; |
There was a problem hiding this comment.
Spacing around the operator is not consistent.
If you have enabled "Format on save" but it is not working, it is likely that you haven't assign a formatter for JS file. This could happen if you have zero or multiple extensions that can format .js file.
If you have installed "Prettier" extension. To assign it as the formatter of JS code, you can try:
- Use "Format document" to format the JS file. Sometimes, VSCode will ask you to choose a formatter, and you can manually select "Prettier".
- Edit
settings.jsonand set Prettier as the default formatter for JS.
See: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
| if( numerator < denominator) { | ||
| return true; | ||
| } |
There was a problem hiding this comment.
Can you lookup if -1/-2, 1/-2, -1/2, 1/0, -1/0 are considered proper fractions, and then update
your implementation and tests accordingly?
| if (rank >= "2" && rank <= "10") { | ||
| return Number(rank); | ||
| } |
There was a problem hiding this comment.
I don't think this function can pass all the tests you have prepared.
| test (`should return "Invalid angle" when (angle <= 0 or angle > 360)` ,() => { | ||
|
|
||
| expect(getAngleType(0)).toEqual("Invalid angle"); | ||
| expect(getAngleType(400)).toEqual("Invalid angle"); | ||
| expect(getAngleType(-10)).toEqual("Invalid angle"); | ||
| }); No newline at end of file |
There was a problem hiding this comment.
Could consider testing both boundary cases.
Self checklist