Skip to content

Commit 177f0d7

Browse files
committed
updated pr template
1 parent aceb219 commit 177f0d7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@ test("should identify right angle (90°)", () => {
88

99
// REPLACE the comments with the tests
1010
// make your test descriptions as clear and readable as possible
11+
//Case 2: Identify Acute Angles
12+
13+
test("should identify acute angle (<90°)", () => {
14+
expect(getAngleType(45)).toEqual("Acute angle");
15+
});
16+
17+
// Case 3: Identify Obtuse Angles
18+
test("should identify obtuse angle (between 90° and 180°)", () => {
19+
expect(getAngleType(120)).toEqual("Obtuse angle");
20+
});
21+
22+
// Case 4: Identify Straight Angles
23+
test("should identify straight angle (180°)", () => {
24+
expect(getAngleType(180)).toEqual("Straight angle");
25+
});
26+
27+
// Case 5: Identify Reflex Angles
28+
test("should identify reflex angle (between 180° and 360°)", () => {
29+
expect(getAngleType(270)).toEqual("Reflex angle");
30+
});
31+
1132

1233
// Case 2: Identify Acute Angles:
1334
// When the angle is less than 90 degrees,

0 commit comments

Comments
 (0)