@@ -6,24 +6,24 @@ 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:
13- // When the angle is less than 90 degrees,
14- // Then the function should return "Acute angle"
15- test ( "should return Acute angle when the angle is less than 90 degrees" , ( ) => {
10+ test ( "should return 'Acute angle' when the angle is less than 90 degrees" , ( ) => {
1611 expect ( getAngleType ( 89 ) ) . toEqual ( "Acute angle" ) ;
1712} ) ;
1813
1914// Case 3: Identify Obtuse Angles:
20- // When the angle is greater than 90 degrees and less than 180 degrees,
21- // Then the function should return "Obtuse angle"
15+ test ( "should return 'Obtuse angle' When the angle is greater than 90 degrees and less than 180 degrees" , ( ) => {
16+ expect ( getAngleType ( 100 ) ) . toEqual ( "Obtuse angle" ) ;
17+ } ) ;
2218
2319// Case 4: Identify Straight Angles:
24- // When the angle is exactly 180 degrees,
25- // Then the function should return "Straight angle"
20+
21+ test ( "should return 'Straight angle' When the angle is exactly 180 degrees," , ( ) => {
22+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
23+ } ) ;
2624
2725// Case 5: Identify Reflex Angles:
28- // When the angle is greater than 180 degrees and less than 360 degrees,
29- // Then the function should return "Reflex angle"
26+
27+ test ( "should return 'Reflex angle' When the angle is greater than 180 degrees and less than 360 degrees," , ( ) => {
28+ expect ( getAngleType ( 181 ) ) . toEqual ( "Reflex angle" ) ;
29+ } ) ;
0 commit comments