Skip to content

Commit c3dcd2d

Browse files
authored
Update MonoAlphabeticTest.java
1 parent 9fbfa38 commit c3dcd2d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.ciphers;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
45
import org.junit.jupiter.api.BeforeEach;
56
import org.junit.jupiter.api.Test;
67

@@ -19,7 +20,7 @@ public void testEncrypt() {
1920
String plaintext = "HELLO";
2021
String expectedCiphertext = "ITSSG"; // Expected result based on the key
2122
String actualCiphertext = monoAlphabetic.encrypt(plaintext);
22-
23+
2324
assertEquals(expectedCiphertext, actualCiphertext, "Encryption should match the expected ciphertext.");
2425
}
2526

@@ -28,7 +29,7 @@ public void testDecrypt() {
2829
String ciphertext = "ITSSG";
2930
String expectedPlaintext = "HELLO"; // Expected result based on the key
3031
String actualPlaintext = monoAlphabetic.decrypt(ciphertext);
31-
32+
3233
assertEquals(expectedPlaintext, actualPlaintext, "Decryption should match the expected plaintext.");
3334
}
3435

@@ -37,7 +38,7 @@ public void testEncryptAndDecrypt() {
3738
String plaintext = "HELLO";
3839
String ciphertext = monoAlphabetic.encrypt(plaintext);
3940
String decryptedText = monoAlphabetic.decrypt(ciphertext);
40-
41+
4142
assertEquals(plaintext, decryptedText, "Decrypting the ciphertext should return the original plaintext.");
4243
}
4344

0 commit comments

Comments
 (0)