@@ -12,15 +12,25 @@ 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 angle (<90°)" , ( ) => {
16+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
17+ } ) ;
1518
1619// Case 3: Identify Obtuse Angles:
1720// When the angle is greater than 90 degrees and less than 180 degrees,
1821// Then the function should return "Obtuse angle"
19-
22+ test ( "should identify obtuse angle (>90° and <180°)" , ( ) => {
23+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
24+ } ) ;
2025// Case 4: Identify Straight Angles:
2126// When the angle is exactly 180 degrees,
2227// Then the function should return "Straight angle"
23-
28+ test ( "should identify straight angle (180°)" , ( ) => {
29+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
30+ } ) ;
2431// Case 5: Identify Reflex Angles:
2532// When the angle is greater than 180 degrees and less than 360 degrees,
2633// Then the function should return "Reflex angle"
34+ test ( "should identify reflex angle (>180° and <360°)" , ( ) => {
35+ expect ( getAngleType ( 270 ) ) . toEqual ( "Reflex angle" ) ;
36+ } ) ;
0 commit comments