Skip to content

Commit c44cf79

Browse files
Revert "Complete proper fraction tests"
This reverts commit 5492092.
1 parent 11176de commit c44cf79

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

‎implement-and-rewrite-tests/implement-tests-with-node-test/2-is-proper-fraction.test.js‎

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,3 @@ test("Basic proper fraction", () => {
1010
// Example: 1/2 is a proper fraction
1111
assert.equal(isProperFraction(1, 2), true);
1212
});
13-
14-
test("returns true for -1 and -2", () => {
15-
assert.equal(isProperFraction(-1, -2), true);
16-
});
17-
18-
test("returns true for zero numerator", () => {
19-
assert.equal(isProperFraction(0, 5), true);
20-
});
21-
22-
test("returns false for zero denominator", () => {
23-
assert.equal(isProperFraction(1, 0), false);
24-
});
25-
26-
test("returns true for negative numerator and positive denominator", () => {
27-
assert.equal(isProperFraction(-1, 2), true);
28-
});
29-
30-
test("returns true for positive numerator and negative denominator", () => {
31-
assert.equal(isProperFraction(1, -2), true);
32-
});
33-
34-
test("returns false for equal numerator and denominator", () => {
35-
assert.equal(isProperFraction(-2, 2), false);
36-
});
37-
38-
test("returns false when absolute numerator is greater than denominator", () => {
39-
assert.equal(isProperFraction(-3, 2), false);
40-
});

‎implement-and-rewrite-tests/implement/2-is-proper-fraction.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
// execute the code to ensure all tests pass.
1515

1616
export function isProperFraction(numerator, denominator) {
17-
return Math.abs(numerator) < Math.abs(denominator);
17+
// TODO: Implement this function
1818
}

0 commit comments

Comments
 (0)