Skip to content

Commit 609e75d

Browse files
style: format OneTimePadCipher with clang-format
1 parent 1c93ba4 commit 609e75d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ void encryptWithMismatchedKeyLengthThrowsException() {
3333
byte[] data = "hello".getBytes(StandardCharsets.UTF_8);
3434
byte[] shortKey = OneTimePadCipher.generateKey(2);
3535

36-
assertThrows(
37-
IllegalArgumentException.class,
38-
() -> OneTimePadCipher.encrypt(data, shortKey));
36+
assertThrows(IllegalArgumentException.class, () -> OneTimePadCipher.encrypt(data, shortKey));
3937
}
4038

4139
@Test
@@ -46,8 +44,6 @@ void decryptWithMismatchedKeyLengthThrowsException() {
4644

4745
byte[] wrongSizedKey = OneTimePadCipher.generateKey(data.length + 1);
4846

49-
assertThrows(
50-
IllegalArgumentException.class,
51-
() -> OneTimePadCipher.decrypt(ciphertext, wrongSizedKey));
47+
assertThrows(IllegalArgumentException.class, () -> OneTimePadCipher.decrypt(ciphertext, wrongSizedKey));
5248
}
5349
}

0 commit comments

Comments
 (0)