Skip to content

Commit 013366b

Browse files
authored
Update RelativityTest.java
Added and removed spaces
1 parent de8c051 commit 013366b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/thealgorithms/physics/RelativityTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)