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
52
constnegativeFraction=isProperFraction(-4,7);
49
53
// ====> complete with your assertion
54
+
assertEquals(negativeFraction,true);
50
55
51
56
// Equal Numerator and Denominator check:
52
57
// Input: numerator = 3, denominator = 3
53
58
// target output: false
54
59
// 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