Skip to content

Commit 2c8b209

Browse files
committed
implement 1 get angle continued
1 parent 3e6cc95 commit 2c8b209

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,18 @@ assertEquals(acute, "Acute angle");
6363
// Then the function should return "Obtuse angle"
6464
const obtuse = getAngleType(120);
6565
// ====> write your test here, and then add a line to pass the test in the function above
66+
assertEquals(obtuse, "Obtuse angle");
6667

6768
// Case 4: Identify Straight Angles:
6869
// When the angle is exactly 180 degrees,
6970
// Then the function should return "Straight angle"
7071
// ====> write your test here, and then add a line to pass the test in the function above
72+
const straight = getAngleType(180);
73+
assertEquals(straight, "Straight angle/line");
7174

7275
// Case 5: Identify Reflex Angles:
7376
// When the angle is greater than 180 degrees and less than 360 degrees,
7477
// Then the function should return "Reflex angle"
75-
// ====> write your test here, and then add a line to pass the test in the function above
78+
// ====> write your test here, and then add a line to pass the test in the function above
79+
const reflex = getAngleType(270);
80+
assertEquals(reflex, "Reflex angle");

0 commit comments

Comments
 (0)