@@ -4,21 +4,25 @@ test("should identify right angle (90°)", () => {
44 expect ( getAngleType ( 90 ) ) . toEqual ( "Right angle" ) ;
55} ) ;
66
7- // REPLACE the comments with the tests
8- // make your test descriptions as clear and readable as possible
9-
107// Case 2: Identify Acute Angles:
118// When the angle is less than 90 degrees,
129// Then the function should return "Acute angle"
10+ test ( "should identify acute angles (less than 90°)" , ( ) => {
11+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
12+ } ) ;
1313
1414// Case 3: Identify Obtuse Angles:
1515// When the angle is greater than 90 degrees and less than 180 degrees,
1616// Then the function should return "Obtuse angle"
17+ test ( "should identify obtuse angles (greater than 90° and less than 180°)" , ( ) => {
18+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
19+ } ) ;
1720
1821// Case 4: Identify Straight Angles:
1922// When the angle is exactly 180 degrees,
2023// Then the function should return "Straight angle"
24+ test ( "should identify straight angle (180°)" , ( ) => {
25+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
26+ } ) ;
2127
22- // Case 5: Identify Reflex Angles:
23- // When the angle is greater than 180 degrees and less than 360 degrees,
24- // Then the function should return "Reflex angle"
28+ /
0 commit comments