@@ -4,22 +4,22 @@ const isProperFraction = require("../implement/2-is-proper-fraction");
44
55// TODO: Write tests in Jest syntax to cover all combinations of positives, negatives, zeros, and other categories.
66
7- // Special case: numerator is zero
8- test ( ` should return false when denominator is zero` , ( ) => {
7+ // Special case: denominator is zero
8+ test ( " should return false when denominator is zero" , ( ) => {
99 expect ( isProperFraction ( 1 , 0 ) ) . toEqual ( false ) ;
1010} ) ;
1111
1212// Case 2: Identify Improper Fractions:
13- test ( "should return false for improper fraction" , ( ) => {
14- expect ( isProperFraction ( 3 , 2 ) ) . toEqual ( false )
15- } )
13+ test ( "should return false for improper fraction" , ( ) => {
14+ expect ( isProperFraction ( 3 , 2 ) ) . toEqual ( false ) ;
15+ } ) ;
1616
1717// Case 3: Identify Negative Fractions:
18- test ( "should return true for negative proper fraction" , ( ) => {
19- expect ( isProperFraction ( - 2 , 7 ) ) . toEqual ( true )
20- } )
18+ test ( "should return true for negative proper fraction" , ( ) => {
19+ expect ( isProperFraction ( - 2 , 7 ) ) . toEqual ( true ) ;
20+ } ) ;
2121
2222// Case 4: Identify Equal Numerator and Denominator:
23- test ( "should return false for equal nominator and denominator" , ( ) => {
24- expect ( isProperFraction ( 2 , 2 ) ) . toEqual ( false )
25- } )
23+ test ( "should return false for equal nominator and denominator" , ( ) => {
24+ expect ( isProperFraction ( 2 , 2 ) ) . toEqual ( false ) ;
25+ } ) ;
0 commit comments