Skip to content

Commit 79156df

Browse files
committed
rewrite get angle type exercise done
1 parent ba6d069 commit 79156df

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,25 @@ 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 (less than 90°)", () => {
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"
19-
22+
test("should identify Obtuse angle (greater than 90° and less than 180 )", () => {
23+
expect(getAngleType(100)).toEqual("Obtuse angle");
24+
});
2025
// Case 4: Identify Straight Angles:
2126
// When the angle is exactly 180 degrees,
2227
// Then the function should return "Straight angle"
23-
28+
test("should identify Straight angle (180°)", () => {
29+
expect(getAngleType(180)).toEqual("Straight angle");
30+
});
2431
// Case 5: Identify Reflex Angles:
2532
// When the angle is greater than 180 degrees and less than 360 degrees,
2633
// Then the function should return "Reflex angle"
34+
test("should identify Reflex angle (greater than 180° and less than 360°)", () => {
35+
expect(getAngleType(181)).toEqual("Reflex angle");
36+
});

0 commit comments

Comments
 (0)