@@ -12,15 +12,26 @@ 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"
22+ test ( "should identify Obtuse angles (> 90 and < 180)" , ( ) => {
23+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
24+ } ) ;
1925
2026// Case 4: Identify Straight Angles:
2127// When the angle is exactly 180 degrees,
2228// Then the function should return "Straight angle"
23-
29+ test ( "should identify Straight angle (180)" , ( ) => {
30+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
31+ } ) ;
2432// Case 5: Identify Reflex Angles:
2533// When the angle is greater than 180 degrees and less than 360 degrees,
2634// Then the function should return "Reflex angle"
35+ test ( "should identify Reflex angle (> 180 and <360)" , ( ) => {
36+ expect ( getAngleType ( 270 ) ) . toEqual ( "Reflex angle" ) ;
37+ } ) ;
0 commit comments