@@ -16,7 +16,6 @@ function isProperFraction(numerator, denominator) {
1616 return false ;
1717 }
1818 return Math . abs ( numerator ) < Math . abs ( denominator ) ;
19-
2019}
2120
2221// The line below allows us to load the isProperFraction function into tests in other files.
@@ -42,7 +41,7 @@ assertEquals(isProperFraction(4, 2), false);
4241assertEquals ( isProperFraction ( 0 , 2 ) , true ) ;
4342assertEquals ( isProperFraction ( 2 , 0 ) , false ) ;
4443assertEquals ( isProperFraction ( 0 , - 5 ) , true ) ;
45- assertEquals ( isProperFraction (
44+ assertEquals ( isProperFraction ( 5 , 0 ) , false ) ;
4645
4746assertEquals ( isProperFraction ( 3 , 3 ) , false ) ;
4847assertEquals ( isProperFraction ( - 3 , 3 ) , false ) ;
@@ -51,4 +50,11 @@ assertEquals(isProperFraction(-3, -3), false);
5150
5251assertEquals ( isProperFraction ( - 1 , 2 ) , true ) ;
5352assertEquals ( isProperFraction ( 1 , - 2 ) , true ) ;
54- assertEquals ( isProperFraction ( - 3 , - 4 ) , true ) ;
53+ assertEquals ( isProperFraction ( - 3 , - 4 ) , true ) ;
54+
55+ assertEquals ( isProperFraction ( 0.5 , 1 ) , true ) ;
56+ assertEquals ( isProperFraction ( 1.5 , 1 ) , false ) ;
57+ assertEquals ( isProperFraction ( 1.1 , 1 ) , false ) ;
58+
59+ assertEquals ( isProperFraction ( 1e9 , 1e10 ) , true ) ;
60+ assertEquals ( isProperFraction ( 1e10 , 1e9 ) , false ) ;
0 commit comments