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.
48
50
constnegativeFraction=isProperFraction(-4,7);
51
+
assertEquals(negativeFraction,true);
49
52
// ====> complete with your assertion
50
53
51
54
// Equal Numerator and Denominator check:
52
55
// Input: numerator = 3, denominator = 3
53
56
// target output: false
54
57
// Explanation: The fraction 3/3 is not a proper fraction because the numerator is equal to the denominator. The function should return false.
0 commit comments