@@ -13,14 +13,33 @@ 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" ) ;
18+ } ) ;
19+
1620// Case 3: Identify Obtuse Angles:
1721// When the angle is greater than 90 degrees and less than 180 degrees,
1822// Then the function should return "Obtuse angle"
1923
24+ test ( "should identify obtuse angle (120°)" , ( ) => {
25+ expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
26+ } ) ;
27+
2028// Case 4: Identify Straight Angles:
2129// When the angle is exactly 180 degrees,
2230// Then the function should return "Straight angle"
2331
32+ test ( "should identify straight angle (180°)" , ( ) => {
33+ expect ( getAngleType ( 180 ) ) . toEqual ( "Straight angle" ) ;
34+ } ) ;
35+
2436// Case 5: Identify Reflex Angles:
2537// When the angle is greater than 180 degrees and less than 360 degrees,
2638// Then the function should return "Reflex angle"
39+
40+ test ( "should identify reflex angle (240)" , ( ) => {
41+ expect ( getAngleType ( 240 ) ) . toEqual ( "Reflex angle" ) ;
42+ } ) ;
43+
44+
45+ // Sprint-3 rewrite-tests-with jest 1-get-angle-type-test.js tests conducted
0 commit comments