@@ -10,27 +10,27 @@ test(`should return false when denominator is zero`, () => {
1010} ) ;
1111
1212// Normal case:
13- test ( `should return false when denominator is zero ` , ( ) => {
13+ test ( `should return true in normal scenario ` , ( ) => {
1414 expect ( isProperFraction ( 5 , 10 ) ) . toEqual ( true ) ;
1515} ) ;
1616// Boundary Value
17- test ( `should return false when denominator is zero ` , ( ) => {
18- expect ( isProperFraction ( 1 , 0 ) ) . toEqual ( false ) ;
17+ test ( `should return false when numerator is 0 ` , ( ) => {
18+ expect ( isProperFraction ( 0 , 5 ) ) . toEqual ( false ) ;
1919} ) ;
2020// Improper Fraction
21- test ( `should return false when denominator is zero ` , ( ) => {
22- expect ( isProperFraction ( 1 , 1 ) ) . toEqual ( false ) ;
21+ test ( `should return false when numerator is greater than denominator ` , ( ) => {
22+ expect ( isProperFraction ( 8 , 3 ) ) . toEqual ( false ) ;
2323} ) ;
2424// Negative Value
25- test ( `should return false when denominator is zero ` , ( ) => {
25+ test ( `should return false when numerator is negative ` , ( ) => {
2626 expect ( isProperFraction ( - 3 , 8 ) ) . toEqual ( false ) ;
2727
2828} ) ;
2929// Very Small
30- test ( `should return false when denominator is zero ` , ( ) => {
30+ test ( `should return true with very small values ` , ( ) => {
3131 expect ( isProperFraction ( 0.0001 , 999999 ) ) . toEqual ( true ) ;
3232} ) ;
3333// very large
34- test ( `should return false when denominator is zero ` , ( ) => {
34+ test ( `should return false with very large ` , ( ) => {
3535 expect ( isProperFraction ( 999999 , 0.0001 ) ) . toEqual ( false ) ;
3636} ) ;
0 commit comments