Skip to content

Commit e38d508

Browse files
committed
Fix
1 parent 3fe4ca5 commit e38d508

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* The Atbash cipher is a simple substitution cipher that replaces each letter
1+
/**
2+
* The Atbash cipher is a simple substitution cipher that replaces each letter
23
* in the alphabet with its reverse.
34
* For example, 'A' becomes 'Z', 'B' becomes 'Y', and so on. It works
45
* identically for both uppercase and lowercase letters.

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ public class AtbashTest {
88

99
@Test
1010
public void atbashEncrypt() {
11-
AtbashCipher normalToEncrypt = new AtbashCipher(
12-
"Hello World! 123, @cipher abcDEF ZYX 987 madam zzZ Palindrome!");
11+
AtbashCipher normalToEncrypt = new AtbashCipher("Hello World! 123, @cipher abcDEF ZYX 987 madam zzZ Palindrome!");
1312
String expectedText = "Svool Dliow! 123, @xrksvi zyxWVU ABC 987 nzwzn aaA Kzormwilnv!";
1413

1514
normalToEncrypt.setString(normalToEncrypt.convert());
@@ -19,8 +18,7 @@ public void atbashEncrypt() {
1918

2019
@Test
2120
public void atbashDecrypt() {
22-
AtbashCipher encryptToNormal = new AtbashCipher(
23-
"Svool Dliow! 123, @xrksvi zyxWVU ABC 987 nzwzn aaA Kzormwilnv!");
21+
AtbashCipher encryptToNormal = new AtbashCipher("Svool Dliow! 123, @xrksvi zyxWVU ABC 987 nzwzn aaA Kzormwilnv!");
2422
String expectedText = "Hello World! 123, @cipher abcDEF ZYX 987 madam zzZ Palindrome!";
2523

2624
encryptToNormal.setString(encryptToNormal.convert());

0 commit comments

Comments
 (0)