Skip to content

Commit cdd8a97

Browse files
added tests to identify acute, obtuse, straight, and reflex angles in getAngleType function
1 parent 2e73bdc commit cdd8a97

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,29 @@ test("should identify right angle (90°)", () => {
1212
// Case 2: Identify Acute Angles:
1313
// When the angle is less than 90 degrees,
1414
// Then the function should return "Acute angle"
15+
test("should identify acute angle (80°)",()=>{
16+
expect(getAngleType(80)).toEqual("Acute angle");
17+
});
1518

1619
// Case 3: Identify Obtuse Angles:
1720
// When the angle is greater than 90 degrees and less than 180 degrees,
1821
// Then the function should return "Obtuse angle"
22+
test("should identify obtuse angle(110°)",()=>{
23+
expect(getAngleType(110)).toEqual("Obtuse angle")
24+
});
25+
1926

2027
// Case 4: Identify Straight Angles:
2128
// When the angle is exactly 180 degrees,
2229
// Then the function should return "Straight angle"
30+
test("should identify straight angle(180°)",()=>{
31+
expect(getAngleType(180)).toEqual("Straight angle")
32+
});
33+
2334

2435
// Case 5: Identify Reflex Angles:
2536
// When the angle is greater than 180 degrees and less than 360 degrees,
2637
// Then the function should return "Reflex angle"
38+
test("should identify reflex angle(280°)",()=>{
39+
expect(getAngleType(280)).toEqual("Reflex angle")
40+
});

0 commit comments

Comments
 (0)