Uh oh!
There was an error while loading. Please reload this page.
West-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 | Implement and Rewrite Tests - #1603
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
maryam-devio
commented
Aug 12, 2026
Hello! Thank you for the comments. I’ve made all the changes you mentioned in all files and pushed the updates as well. Thank you! |
| if (denominator === 0){ | ||
| return false; | ||
| } | ||
| if(Math.abs(numerator) < Math.abs(denominator)){ | ||
| return true; | ||
| } | ||
| else{ |
There was a problem hiding this comment.
Why not use a formatter to keep the code consistently formatted?
| if(card=="A♠" || card=="A♥" || card=="A♦" || card == "A♣"){ | ||
| return 11; | ||
| } | ||
| if(card=="J♠" || card=="J♥" || card=="J♦" || card == "J♣" || | ||
| card=="Q♠" || card=="Q♥" || card=="Q♦" || card == "Q♣" || | ||
| card=="K♠" || card=="K♥" || card=="K♦" || card == "K♣" | ||
| ){ | ||
| return 10; | ||
| } |
There was a problem hiding this comment.
Note: Code works but could probably be simplified.
| }); | ||
| // Proper fractions with positive values | ||
| test("should return true when the absolute value of the numerator is less than the absolute value of the denominator", () => { |
There was a problem hiding this comment.
Note: We could also use pseudo-code and math notations like abs(...) or | ... | to denote "absolute value of" in the descriptions.
Learners, PR Template
Self checklist
Changelist
I have implement all the tasks according to the requirements, and test all the changes made.