Add SimpleSubstitutionCipherTest (#3857)

This commit is contained in:
Hikmet Çakır
2023-01-17 23:05:24 +03:00
committed by GitHub
parent b14f55096d
commit 54d6f79acd
2 changed files with 48 additions and 12 deletions

View File

@ -80,16 +80,4 @@ public class SimpleSubstitutionCipher {
return decoded.toString();
}
/**
* TODO remove main and make JUnit Testing
*/
public static void main(String[] args) {
String a = encode(
"defend the east wall of the castle",
"phqgiumeaylnofdxjkrcvstzwb"
);
String b = decode(a, "phqgiumeaylnofdxjkrcvstzwb");
System.out.println(b);
}
}