File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/test/java/com/thealgorithms/physics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,22 @@ void testTimeDilation() {
4040 @ DisplayName ("Test the velocity addition in the same direction" )
4141 void testVelocityAdditionSameDirection () {
4242 double myVelocity = Relativity .velocityAddition (0.8 * C , 0.75 * C );
43- assertEquals (0.125 * C , myVelocity , DELTA );
43+ assertEquals (0.125 * C , myVelocity , DELTA );
4444 }
4545
4646 @ Test
4747 @ DisplayName ("Test the velocity addition in different directions" )
4848 void testVelocityAdditionDifferentDirections () {
4949 double myVelocity = Relativity .velocityAddition (0.8 * C , -0.75 * C );
50- assertEquals (0.96875 * C , myVelocity , DELTA );
50+ assertEquals (0.96875 * C , myVelocity , DELTA );
5151 }
5252
5353 @ Test
5454 @ DisplayName ("Test the velocity addition with the speed of light" )
5555 void testVelocityAdditionWithSpeedOfLight () {
5656 double myVelocity = Relativity .velocityAddition (C , 0.7 * C );
5757 assertEquals (C , myVelocity , DELTA );
58- }
58+ }
5959
6060 @ Test
6161 @ DisplayName ("Test invalid inputs throw exception" )
You can’t perform that action at this time.
0 commit comments