Skip to content

Commit 5e86307

Browse files
committed
Fixed AutokeyTest.java to not expect spaces in output
1 parent af89ffd commit 5e86307

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ void autokeyEncryptTest() {
1818
String cipherText = autokeyCipher.encrypt(plaintext, keyword);
1919

2020
// then
21-
assertEquals("QKUC YT DVZN", cipherText);
21+
assertEquals("CYIXNFHEPN", cipherText);
2222
}
2323

2424
@Test
2525
void autokeyDecryptTest() {
2626
// given
27-
String ciphertext = "QKUC YT DVZN";
27+
String ciphertext = "CYIX NF HEPN";
2828
String keyword = "QUEEN";
2929

3030
// when
3131
String plainText = autokeyCipher.decrypt(ciphertext, keyword);
3232

3333
// then
34-
assertEquals("MEET AT DAWN", plainText);
34+
assertEquals("MEETATDAWN", plainText);
3535
}
3636
}

0 commit comments

Comments
 (0)