Skip to content

Commit 3b9f415

Browse files
committed
Add Jest test case for full rotation (360°) in getAngleType
1 parent a66ab62 commit 3b9f415

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ test("should identify reflex angle (>180° and <360°)", () => {
4545
expect(getAngleType(270)).toEqual("Reflex angle");
4646
expect(getAngleType(359.999)).toEqual("Reflex angle");
4747
});
48+
49+
// Case 6: Identify Full Rotation:
50+
// When the angle is exactly 360 degrees,
51+
// Then the function should return "Full rotation"
52+
test("should identify full roatation angle 360°", () => {
53+
expect(getAngleType(360)).toEqual("Full rotation");
54+
});
55+

0 commit comments

Comments
 (0)