Skip to content

Commit dcf9e96

Browse files
committed
write tests for 1-implement-and-rewrite-tests/implement/1-get-angle-type.js
1 parent b31a586 commit dcf9e96

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,15 @@ function assertEquals(actualOutput, targetOutput) {
3434
// TODO: Write tests to cover all cases, including boundary and invalid cases.
3535
// Example: Identify Right Angles
3636
const right = getAngleType(90);
37+
const acute = getAngleType(75);
38+
const obtuse = getAngleType(150);
39+
const straight = getAngleType(180);
40+
const reflex = getAngleType(340);
41+
const invalid = getAngleType(-5);
42+
3743
assertEquals(right, "Right angle");
44+
assertEquals(acute, "Acute angle");
45+
assertEquals(obtuse, "Obtuse angle");
46+
assertEquals(straight, "Straight angle");
47+
assertEquals(reflex, "Reflex angle");
48+
assertEquals(invalid, "Invalid angle");

0 commit comments

Comments
 (0)