File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ test("should identify right angle (90°)", () => {
1414// Then the function should return "Acute angle"
1515test ( "should identify acute angle( angle < 90°)" , ( ) => {
1616 expect ( getAngleType ( 45 ) ) . toEqual ( "Acute angle" ) ;
17+ expect ( getAngleType ( 0.1 ) ) . toEqual ( "Acute angle" ) ;
18+ expect ( getAngleType ( 89.999 ) ) . toEqual ( "Acute angle" ) ;
1719} ) ;
1820
1921// Case 3: Identify Obtuse Angles:
2022// When the angle is greater than 90 degrees and less than 180 degrees,
2123// Then the function should return "Obtuse angle"
2224test ( "should identify obtuse angle(90° < angle < 180°)" , ( ) => {
2325 expect ( getAngleType ( 120 ) ) . toEqual ( "Obtuse angle" ) ;
26+ expect ( getAngleType ( 90.1 ) ) . toEqual ( "Obtuse angle" ) ;
27+ expect ( getAngleType ( 179.9 ) ) . toEqual ( "Obtuse angle" ) ;
2428} ) ;
2529
2630// Case 4: Identify Straight Angles:
@@ -35,4 +39,6 @@ test("should identify straight angle(180°)", () => {
3539// Then the function should return "Reflex angle"
3640test ( "should identify reflex angle(180° < angle < 360°)" , ( ) => {
3741 expect ( getAngleType ( 240 ) ) . toEqual ( "Reflex angle" ) ;
42+ expect ( getAngleType ( 359.999 ) ) . toEqual ( "Reflex angle" ) ;
43+ expect ( getAngleType ( 180.001 ) ) . toEqual ( "Reflex angle" ) ;
3844} ) ;
You can’t perform that action at this time.
0 commit comments