@@ -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+ //else if (angle < 90) {
16+ //return "Acute angle";
17+
18+ test ( "returns Acute angle for values less than 90 degrees" , ( ) => {
19+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
20+ } ) ;
1521
1622// Case 3: Identify Obtuse Angles:
1723// When the angle is greater than 90 degrees and less than 180 degrees,
1824// Then the function should return "Obtuse angle"
1925
26+ test ( "returns Obtuse angle for values greater than 90 degrees and less than 180 degrees" , ( ) => {
27+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
28+ } ) ;
29+
30+
2031// Case 4: Identify Straight Angles:
2132// When the angle is exactly 180 degrees,
2233// Then the function should return "Straight angle"
2334
35+ test ( "returns Straight angle for angle === 180" , ( ) => {
36+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
37+ } ) ;
38+
2439// Case 5: Identify Reflex Angles:
2540// When the angle is greater than 180 degrees and less than 360 degrees,
2641// Then the function should return "Reflex angle"
42+
43+ test ( "returns Reflex angle for angles > 180 && angle < 360" , ( ) => {
44+ expect ( getAngleType ( 290 ) ) . toEqual ( "Reflex angle" ) ;
45+ } ) ;
0 commit comments