@@ -4,21 +4,19 @@ 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
7+ test ( "should identify acute angle (< 90°)" , ( ) => {
8+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
9+ } ) ;
910
10- // Case 2: Identify Acute Angles:
11- // When the angle is less than 90 degrees,
12- // Then the function should return "Acute angle"
11+ test ( "should identify obtuse angle (> 90° and < 180°)" , ( ) => {
12+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
13+ } ) ;
1314
14- // Case 3: Identify Obtuse Angles:
15- // When the angle is greater than 90 degrees and less than 180 degrees,
16- // Then the function should return "Obtuse angle"
15+ test ( "should identify straight angle (180°)" , ( ) => {
16+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
17+ } ) ;
1718
18- // Case 4: Identify Straight Angles:
19- // When the angle is exactly 180 degrees,
20- // Then the function should return "Straight angle"
19+ test ( "should identify reflex angle (> 180° and < 360°)" , ( ) => {
20+ expect ( getAngleType ( 270 ) ) . toEqual ( "Reflex angle" ) ;
21+ } ) ;
2122
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"
0 commit comments