-
-
Notifications
You must be signed in to change notification settings - Fork 219
ITP-Jan 2025 | London | Maryna Romanova | Module-Structuring-and-Testing-Data | Week 6 | Sprint 3 #340
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
ITP-Jan 2025 | London | Maryna Romanova | Module-Structuring-and-Testing-Data | Week 6 | Sprint 3 #340
Changes from 1 commit
291da1e
c0f3ab7
b3e431c
1275374
25fe73b
eb90b74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
function isProperFraction(numerator, denominator) { | ||
if (numerator < denominator) return true; | ||
else return false; | ||
// add your completed function from key-implement here | ||
} | ||
if (denominator === 0) return false; | ||
return Math.abs(numerator) < Math.abs(denominator); | ||
} | ||
// function isProperFraction(numerator, denominator) { | ||
// if (numerator < denominator) return true; | ||
// else return false; | ||
// // add your completed function from key-implement here | ||
// } | ||
|
||
|
||
|
||
module.exports = isProperFraction; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ const getOrdinalNumber = require("./get-ordinal-number"); | |
|
||
|
||
|
||
test("should return '3rd' for 3 and more", () => { | ||
test("should return all mentioned test bellow", () => { | ||
|
||
expect(getOrdinalNumber(3)).toEqual("3rd"); | ||
expect(getOrdinalNumber(3)).toEqual("3rd"); | ||
expect(getOrdinalNumber(23)).toEqual("23rd"); | ||
|
Uh oh!
There was an error while loading. Please reload this page.