@@ -13,16 +13,20 @@ test("should identify right angle (90°)", () => {
1313// When the angle is less than 90 degrees,
1414// Then the function should return "Acute angle"
1515
16- test ( "should identify actue angle (40°)" , ( ) => {
17- expect ( getAngleType ( 40 ) ) . toEqual ( "Acute angle" ) ;
16+ test ( "should identify acute angles (0 < angle < 90)" , ( ) => {
17+ expect ( getAngleType ( 10 ) ) . toEqual ( "Acute angle" ) ;
18+ expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
19+ expect ( getAngleType ( 89.999 ) ) . toEqual ( "Acute angle" ) ;
1820} ) ;
1921
2022// Case 3: Identify Obtuse Angles:
2123// When the angle is greater than 90 degrees and less than 180 degrees,
2224// Then the function should return "Obtuse angle"
2325
24- test ( "should identify obtuse angle (120°)" , ( ) => {
25- expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
26+ test ( "should identify obtuse angles (90 < angle < 180)" , ( ) => {
27+ expect ( getAngleType ( 110 ) ) . toEqual ( "Obtuse angle" ) ;
28+ expect ( getAngleType ( 145 ) ) . toEqual ( "Obtuse angle" ) ;
29+ expect ( getAngleType ( 169.99 ) ) . toEqual ( "Obtuse angle" ) ;
2630} ) ;
2731
2832// Case 4: Identify Straight Angles:
@@ -37,9 +41,11 @@ test("should identify straight angle (180°)", () => {
3741// When the angle is greater than 180 degrees and less than 360 degrees,
3842// Then the function should return "Reflex angle"
3943
40- test ( "should identify reflex angle (240)" , ( ) => {
41- expect ( getAngleType ( 240 ) ) . toEqual ( "Reflex angle" ) ;
44+ test ( "should identify reflex angles (180 < angle < 360)" , ( ) => {
45+ expect ( getAngleType ( 180.5 ) ) . toEqual ( "Reflex angle" ) ;
46+ expect ( getAngleType ( 270 ) ) . toEqual ( "Reflex angle" ) ;
47+ expect ( getAngleType ( 359.999 ) ) . toEqual ( "Reflex angle" ) ;
4248} ) ;
4349
44-
45- // Sprint-3 rewrite-tests-with jest 1-get-angle-type-test.js tests conducted
50+ // Sprint-3 rewrite-tests-with jest 1-get-angle-type-test.js tests conducted
51+ // Testing modified to cover broader scenarios that cover all possible cases.
0 commit comments