@@ -9,18 +9,18 @@ test("should identify right angle (90°)", () => {
99// REPLACE the comments with the tests
1010// make your test descriptions as clear and readable as possible
1111
12- // Case 2: Identify Acute Angles:
13- // When the angle is less than 90 degrees,
14- // Then the function should return "Acute angle"
12+ test ( "should identify acute angle(45°)" , ( ) => {
13+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
14+ } ) ;
1515
16- // 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"
16+ test ( "should identify obtuse angle(120°)" , ( ) => {
17+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
18+ } ) ;
1919
20- // Case 4: Identify Straight Angles:
21- // When the angle is exactly 180 degrees,
22- // Then the function should return "Straight angle"
20+ test ( "should identify straight angle(180°)" , ( ) => {
21+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
22+ } ) ;
2323
24- // 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"
24+ test ( "should identify reflex angle(260°)" , ( ) => {
25+ expect ( getAngleType ( 260 ) ) . toEqual ( "Reflex angle" ) ;
26+ } ) ;
0 commit comments