Commit 362f624
Pretty Taruvinga
Improve isProperFraction Jest tests
- Added tests for proper fractions using abs(numerator) < abs(denominator)
- Added tests for improper fractions using abs(numerator) >= abs(denominator)
- Covered positive, negative, and zero cases
- Added test for denominator equal to zero1 parent 71445dc commit 362f624
File tree
1 file changed
+8
-10
lines changed- Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest
1 file changed
+8
-10
lines changedLines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
32 | 30 | | |
0 commit comments