@@ -10,17 +10,25 @@ test("should identify right angle (90°)", () => {
1010// make your test descriptions as clear and readable as possible
1111
1212// Case 2: Identify Acute Angles:
13- // When the angle is less than 90 degrees,
14- // Then the function should return "Acute angle"
13+ test ( "should identify acute angle (<90°)" , ( ) => {
14+ // Call the function with an angle less than 90 degrees
15+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ; // Function is expected to return "Acute angle"
16+ } ) ;
1517
1618// Case 3: Identify Obtuse Angles:
17- // When the angle is greater than 90 degrees and less than 180 degrees,
18- // Then the function should return "Obtuse angle"
19+ test ( "should identify obtuse angle (>90° and <180°)" , ( ) => {
20+ // Call the function with an angle greater than 90 degrees and less than 180 degrees
21+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ; // Function is expected to return "Obtuse angle"
22+ } ) ;
1923
2024// Case 4: Identify Straight Angles:
21- // When the angle is exactly 180 degrees,
22- // Then the function should return "Straight angle"
25+ test ( "should identify straight angle (180°)" , ( ) => {
26+ // Call the function with an angle of exactly 180 degrees
27+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ; // Function is expected to return "Straight angle"
28+ } ) ;
2329
2430// Case 5: Identify Reflex Angles:
25- // When the angle is greater than 180 degrees and less than 360 degrees,
26- // Then the function should return "Reflex angle"
31+ test ( "should identify reflex angle (>180° and <360°)" , ( ) => {
32+ // Call the function with an angle greater than 180 degrees and less than 360 degrees
33+ expect ( getAngleType ( 270 ) ) . toEqual ( "Reflex angle" ) ; // Function is expected to return "Reflex angle"
34+ } ) ;
0 commit comments