Skip to content

Commit aed9f49

Browse files
authored
Update RelativityTest.java
Function name ambiguity resolved
1 parent c23e5be commit aed9f49

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
@@ -39,21 +39,21 @@ void testTimeDilation() {
3939

4040
@Test
4141
@DisplayName("Test the velocity addition in the same direction")
42-
void testVelocityAddition() {
42+
void testVelocityAdditionSameDirection() {
4343
double myVelocity = Relativity.velocityAddition(0.8*C, 0.75*C);
4444
assertEquals(0.125*C, myVelocity, DELTA);
4545
}
4646

4747
@Test
4848
@DisplayName("Test the velocity addition in different directions")
49-
void testVelocityAddition() {
49+
void testVelocityAdditionDifferentDirections() {
5050
double myVelocity = Relativity.velocityAddition(0.8*C, -0.75*C);
5151
assertEquals(0.96875*C, myVelocity, DELTA);
5252
}
5353

5454
@Test
5555
@DisplayName("Test the velocity addition with the speed of light")
56-
void testVelocityAddition() {
56+
void testVelocityAdditionWithSpeedOfLight() {
5757
double myVelocity = Relativity.velocityAddition(C, 0.7*C);
5858
assertEquals(C, myVelocity, DELTA);
5959
}

0 commit comments

Comments
 (0)