-
-
Notifications
You must be signed in to change notification settings - Fork 240
Manchester | ITP-Sept-2025 | Fithi Teklom| Sprint 3 | Coursework/sprint-3-implement-and-rewrite #844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CameronDowner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good!
I've added a couple stretch comments / questions, but overall a really great submission
| if (numerator < denominator) { | ||
| return true; | ||
| } else { | ||
| return false; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tip: if numerator < denominator evaluates to true/false, do we need a if statement here?
|
|
||
| // Case 2: Identify Improper Fractions: | ||
| test("should return false for an improper fraction (numerator > denominator)", () => { | ||
| expect(isProperFraction(5, 2)).toEqual(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: why would we use .toEqual(false) instead of .toBeFalsy()?
toEqual(false)
| }); | ||
| // Case 5: Handle Invalid Cards: | ||
| test("should throw an error for invalid card rank", () => { | ||
| expect(() => getCardValue("Z♠")).toThrow("Invalid card rank"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: why do we use an arrow function here?
Self checklist