Skip to content

Commit 618e77e

Browse files
committed
Add tests for reflex, right, and straight angle boundaries in getAngleType function
1 parent d67939f commit 618e77e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎implement-and-rewrite-tests/implement-tests-with-node-test/1-get-angle-type.test.js‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ test("classifies obtuse angle boundary ", () => {
4646
assert.equal(obtuseBoundary, "Straight angle");
4747
});
4848

49+
test("classifies reflex angle boundary ", () => {
50+
const reflexBoundary = getAngleType(270);
51+
assert.equal(reflexBoundary, "Reflex angle");
52+
});
53+
54+
test("classifies right angle boundary ", () => {
55+
const rightBoundary = getAngleType(90);
56+
assert.equal(rightBoundary, "Right angle");
57+
});
58+
59+
test("classifies straight angle boundary ", () => {
60+
const straightBoundary = getAngleType(180);
61+
assert.equal(straightBoundary, "Straight angle");
62+
});
63+
4964
test("Handles invalid angles (greater than 360)", () => {
5065
const invalidGreaterThan360 = getAngleType(400);
5166
assert.equal(invalidGreaterThan360, "Invalid angle");

0 commit comments

Comments
 (0)