Skip to content

Commit 5b5d9ef

Browse files
authored
Update DiffieHellmanTest.java
1 parent a4831b6 commit 5b5d9ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/thealgorithms/ciphers/DiffieHellmanTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@ public void testCalculateSharedSecret(BigInteger base, BigInteger secret, BigInt
2828

2929
// Provide test data for both public key and shared secret calculation
3030
private static Stream<Arguments> provideTestData() {
31-
return Stream.of(
32-
createTestArgs(5, 6, 23, 8, 13), createTestArgs(2, 5, 13, 6, 2));
31+
return Stream.of(createTestArgs(5, 6, 23, 8, 13), createTestArgs(2, 5, 13, 6, 2));
3332
}
3433

3534
// Helper method for arguments
3635
private static Arguments createTestArgs(long base, long secret, long prime, long publicExpected, long sharedExpected) {
37-
return Arguments.of(
38-
BigInteger.valueOf(base), BigInteger.valueOf(secret), BigInteger.valueOf(prime), BigInteger.valueOf(publicExpected), BigInteger.valueOf(sharedExpected));
36+
return Arguments.of(BigInteger.valueOf(base), BigInteger.valueOf(secret), BigInteger.valueOf(prime), BigInteger.valueOf(publicExpected), BigInteger.valueOf(sharedExpected));
3937
}
4038
}

0 commit comments

Comments
 (0)