Updated tests

This commit is contained in:
2022-02-22 18:43:45 +00:00
parent a230fedd7d
commit 294cc74c9f

View File

@@ -415,7 +415,7 @@ public class TestAutokey{
String correctOutput = "XYZ";
cipher.setKeyword(keyword);
String output = cipher.getKeyword();
assertEquals("Vigenere failed keyword with whitespace.", correctOutput, output);
assertEquals("Autokey failed keyword with whitespace.", correctOutput, output);
//Test keyword with symbol
@@ -423,7 +423,7 @@ public class TestAutokey{
correctOutput = "XYZ";
cipher.setKeyword(keyword);
output = cipher.getKeyword();
assertEquals("Vigenere failed keyword with symbol.", correctOutput, output);
assertEquals("Autokey failed keyword with symbol.", correctOutput, output);
//Test keyword with mixed case
@@ -431,13 +431,13 @@ public class TestAutokey{
correctOutput = "XYZ";
cipher.setKeyword(keyword);
output = cipher.getKeyword();
assertEquals("Vigenere failed keyword with mixed case.", correctOutput, output);
assertEquals("Autokey failed keyword with mixed case.", correctOutput, output);
//Test keyword with whitespace, symbol and keyword
keyword = "x Y%z ";
correctOutput = "XYZ";
cipher.setKeyword(keyword);
output = cipher.getKeyword();
assertEquals("Vigenere failed keyword with space, symbol, and mixed case.", correctOutput, output);
assertEquals("Autokey failed keyword with space, symbol, and mixed case.", correctOutput, output);
}
}