@@ -6,21 +6,30 @@ test("should identify right angle (90°)", () => {
66 expect ( getAngleType ( 90 ) ) . toEqual ( "Right angle" ) ;
77} ) ;
88
9- // REPLACE the comments with the tests
10- // make your test descriptions as clear and readable as possible
11-
129// Case 2: Identify Acute Angles:
1310// When the angle is less than 90 degrees,
1411// Then the function should return "Acute angle"
12+ test ( "should identify Acute angle (< 90)" , ( ) => {
13+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" )
14+ } ) ;
1515
1616// Case 3: Identify Obtuse Angles:
1717// When the angle is greater than 90 degrees and less than 180 degrees,
1818// Then the function should return "Obtuse angle"
19+ test ( "should identify Obtuse angles (> 90 and < 180)" , ( ) => {
20+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" )
21+ } ) ;
1922
2023// Case 4: Identify Straight Angles:
2124// When the angle is exactly 180 degrees,
2225// Then the function should return "Straight angle"
26+ test ( "should identify Straight angle (180)" , ( ) => {
27+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" )
28+ } ) ;
2329
2430// Case 5: Identify Reflex Angles:
2531// When the angle is greater than 180 degrees and less than 360 degrees,
2632// Then the function should return "Reflex angle"
33+ test ( "should identify Reflex angle (> 180 and <360)" , ( ) => {
34+ expect ( getAngleType ( 270 ) ) . toEqual ( "Reflex angle" )
35+ } ) ;
0 commit comments