Skip to content

Commit 5c5e00b

Browse files
committed
Add a Jest test case for straight angle in getAngleType
1 parent 9705d12 commit 5c5e00b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ test("should identiify obtuse angle (>90° and <180°)", () => {
3333
// Then the function should return "Straight angle"
3434
test("should identify straight angle (180°)", () => {
3535
expect(getAngleType(180)).toEqual("Straight angle");
36+
expect(getAngleType(180.0)).toEqual("Straight angle");
3637
});
3738

3839
// Case 5: Identify Reflex Angles:

0 commit comments

Comments
 (0)