Skip to content

Commit afbf7af

Browse files
committed
fix(tests): remove unnecessary whitespace in test assertion for encryption
1 parent 25545d4 commit afbf7af

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/com/thealgorithms/ciphers/PermutationCipher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,4 @@ private String removePadding(String text) {
191191
public char getPaddingChar() {
192192
return PADDING_CHAR;
193193
}
194-
}
194+
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ void testSpecificExampleFromDescription() {
246246
// then
247247
// Block 1: "HEL" -> positions {3,1,2} -> "LHE"
248248
// Block 2: "LOX" -> positions {3,1,2} -> "XLO"
249-
assertEquals("LHEXLO", encrypted);
250-
249+
assertEquals("LHEXLO", encrypted);
251250
// Verify decryption
252251
String decrypted = cipher.decrypt(encrypted, key);
253252
assertEquals("HELLO", decrypted);

0 commit comments

Comments
 (0)