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
test(`should return true when the absolute value of the numerator is less than the absolute value of the denominator and the denominator is not 0`,()=>{
10
10
expect(isProperFraction(1,2)).toEqual(true);
11
+
expect(isProperFraction(1,-3)).toEqual(true);
11
12
expect(isProperFraction(3.5,4)).toEqual(true);
12
13
expect(isProperFraction(-99,-100)).toEqual(true);
13
14
expect(isProperFraction(0,-5)).toEqual(true);
15
+
expect(isProperFraction(0,56)).toEqual(true);
14
16
expect(isProperFraction(8,12.5)).toEqual(true);
15
17
expect(isProperFraction(-6,12)).toEqual(true);
18
+
expect(isProperFraction(0.03,0.1)).toEqual(true);
16
19
});
17
20
18
21
test(`should return false when the denominator is equal to zero`,()=>{
@@ -29,6 +32,7 @@ test(`should return false when the absolute value of the numerator is greater th
29
32
expect(isProperFraction(-15,-4)).toEqual(false);
30
33
expect(isProperFraction(36,-5)).toEqual(false);
31
34
expect(isProperFraction(3.8,2.7)).toEqual(false);
35
+
expect(isProperFraction(1,0.7)).toEqual(false);
32
36
});
33
37
34
38
test(`should return false when the absolute value of the numerator is equal to the absolute value of the denominator`,()=>{
0 commit comments