@@ -12,15 +12,34 @@ test("should identify right angle (90°)", () => {
1212// Case 2: Identify Acute Angles:
1313// When the angle is less than 90 degrees,
1414// Then the function should return "Acute angle"
15+ test ( "should identify acute angles (< 90°)" , ( ) => {
16+ expect ( getAngleType ( 30 ) ) . toEqual ( "Acute angle" ) ;
17+ expect ( getAngleType ( 1 ) ) . toEqual ( "Acute angle" ) ;
18+ expect ( getAngleType ( 89 ) ) . toEqual ( "Acute angle" ) ;
19+ } ) ;
1520
1621// Case 3: Identify Obtuse Angles:
1722// When the angle is greater than 90 degrees and less than 180 degrees,
1823// Then the function should return "Obtuse angle"
24+ test ( "should identify obtuse angles (90° < angle < 180°)" , ( ) => {
25+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
26+ expect ( getAngleType ( 100 ) ) . toEqual ( "Obtuse angle" ) ;
27+ expect ( getAngleType ( 179 ) ) . toEqual ( "Obtuse angle" ) ;
28+ } ) ;
29+
1930
2031// Case 4: Identify Straight Angles:
2132// When the angle is exactly 180 degrees,
2233// Then the function should return "Straight angle"
34+ test ( "should identify straight angles (180°)" , ( ) => {
35+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
36+ } ) ;
2337
2438// Case 5: Identify Reflex Angles:
2539// When the angle is greater than 180 degrees and less than 360 degrees,
2640// Then the function should return "Reflex angle"
41+ test ( "should identify reflex angles (180° < angle < 360°)" , ( ) => {
42+ expect ( getAngleType ( 200 ) ) . toEqual ( "Reflex angle" ) ;
43+ expect ( getAngleType ( 250 ) ) . toEqual ( "Reflex angle" ) ;
44+ expect ( getAngleType ( 359 ) ) . toEqual ( "Reflex angle" ) ;
45+ } ) ;
0 commit comments