Skip to content

Commit 48f2143

Browse files
committed
Add more Jest test cases for acute angles in getAngleType
1 parent 273a36a commit 48f2143

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ test("should identify right angle (90°)", () => {
1111
// make your test descriptions as clear and readable as possible
1212

1313
// Case 2: Identify Acute Angles:
14-
// When the angle is less than 90 degrees,
14+
// When the angle is greater than 0 degrees and less than 90 degrees,
1515
// Then the function should return "Acute angle"
1616
test("should identify acute angle (<90°)", () => {
1717
expect(getAngleType(50)).toEqual("Acute angle");
18+
expect(getAngleType(45)).toEqual("Acute angle");
19+
expect(getAngleType(89.999)).toEqual("Acute angle");
1820
});
1921

2022
// Case 3: Identify Obtuse Angles:

0 commit comments

Comments
 (0)