Skip to content

Commit c17f6c3

Browse files
Add tests for obtuse angles in getAngleType function
1 parent 023c553 commit c17f6c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/1-get-angle-type.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ assertEquals(acute, "Acute angle");
6161
// Case 3: Identify Obtuse Angles:
6262
// When the angle is greater than 90 degrees and less than 180 degrees,
6363
// Then the function should return "Obtuse angle"
64-
const obtuse = getAngleType(120);
64+
const obtuse = getAngleType(100);
6565
assertEquals(obtuse, "Obtuse angle");
66+
67+
const obtuse1 = getAngleType(170);
68+
assertEquals(obtuse1, "Obtuse angle");
6669
// ====> write your test here, and then add a line to pass the test in the function above
6770

6871
// Case 4: Identify Straight Angles:

0 commit comments

Comments
 (0)