You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Explanation: The fraction -4/7 is a proper fraction because the absolute value of the numerator (4) is less than the denominator (7). The function should return true.
42
44
constnegativeFraction=isProperFraction(-4,7);
43
-
// ====> complete with your assertion
45
+
assertEquals(negativeFraction,true);// assertion for negative fraction.
44
46
45
47
// Equal Numerator and Denominator check:
46
48
// Input: numerator = 3, denominator = 3
47
49
// target output: false
48
50
// Explanation: The fraction 3/3 is not a proper fraction because the numerator is equal to the denominator. The function should return false.
49
51
constequalFraction=isProperFraction(3,3);
52
+
assertEquals(equalFraction,false);// assertion for equal numerator and denominator.
0 commit comments