@@ -9,18 +9,21 @@ 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"
1512
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"
13+ test ( "should identify acute angle (angle<90°)" , ( ) => {
14+ expect ( getAngleType ( 80 ) ) . toEqual ( "Acute angle" ) ;
15+ } ) ;
16+
17+ test ( "should identify obtuse angle (angle>90°)" , ( ) => {
18+ expect ( getAngleType ( 110 ) ) . toEqual ( "Obtuse angle" ) ;
19+ } ) ;
20+
21+
22+ test ( "should identify straight angle (angle<180°)" , ( ) => {
23+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
24+ } ) ;
1925
20- // Case 4: Identify Straight Angles:
21- // When the angle is exactly 180 degrees,
22- // Then the function should return "Straight angle"
2326
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"
27+ test ( "should identify reflex angle (angle>180°)" , ( ) => {
28+ expect ( getAngleType ( 190 ) ) . toEqual ( "Reflex angle" ) ;
29+ } ) ;
0 commit comments