Skip to content

Commit 996ebed

Browse files
added test case for incomplete fraction input handling
1 parent 595eed1 commit 996ebed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,10 @@ assertEquals(notANumber, "Use only numbers");
8989
const notANumber2 = isProperFraction(7, "q");
9090
assertEquals(notANumber2, "Use only numbers");
9191

92+
93+
//Incomplete input
94+
//Input:2
95+
// target output: message
96+
//Explanation: the fraction needs both a numerator and a denominator
9297
const incompleteFraction = isProperFraction(2);
9398
assertEquals(incompleteFraction, "Incomplete fraction");

0 commit comments

Comments
 (0)