Updated failure messages

This commit is contained in:
2022-02-23 19:32:19 +00:00
parent 62e51d0a80
commit 7de2eb94db

View File

@@ -50,7 +50,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "Wiqooxh ds^cjqfgo"; correctOutput = "Wiqooxh ds^cjqfgo";
output = cipher.encode(keyword, inputString); output = cipher.encode(keyword, inputString);
assertEquals("Vigenere failed symbol encoding.", correctOutput, output); assertEquals("Vigenere failed mixed case, whitespace, symbol encoding.", correctOutput, output);
} }
@Test @Test
@@ -89,7 +89,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "WIQOOXH DS^CJQFGO"; correctOutput = "WIQOOXH DS^CJQFGO";
output = cipher.encode(keyword, inputString); output = cipher.encode(keyword, inputString);
assertEquals("Vigenere failed no capital symbol encoding.", correctOutput, output); assertEquals("Vigenere failed no capital mixed case, whitespace, symbol encoding.", correctOutput, output);
} }
@Test @Test
@@ -128,7 +128,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "Wiqooxhds^cjqfgo"; correctOutput = "Wiqooxhds^cjqfgo";
output = cipher.encode(keyword, inputString); output = cipher.encode(keyword, inputString);
assertEquals("Vigenere failed no whitespace symbol encoding.", correctOutput, output); assertEquals("Vigenere failed no whitespace mixed case, whitespace, symbol encoding.", correctOutput, output);
} }
@Test @Test
@@ -167,7 +167,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "Wiqooxh dscjqfgo"; correctOutput = "Wiqooxh dscjqfgo";
output = cipher.encode(keyword, inputString); output = cipher.encode(keyword, inputString);
assertEquals("Vigenere failed no symbol symbol encoding.", correctOutput, output); assertEquals("Vigenere failed no symbol mixed case, whitespace, symbol encoding.", correctOutput, output);
} }
@Test @Test
@@ -206,7 +206,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "WIQOOXHDSCJQFGO"; correctOutput = "WIQOOXHDSCJQFGO";
output = cipher.encode(keyword, inputString); output = cipher.encode(keyword, inputString);
assertEquals("Vigenere failed secure symbol encoding.", correctOutput, output); assertEquals("Vigenere failed secure mixed case, whitespace, symbol encoding.", correctOutput, output);
} }
@@ -246,7 +246,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "Message to^encode"; correctOutput = "Message to^encode";
output = cipher.decode(keyword, inputString); output = cipher.decode(keyword, inputString);
assertEquals("Vigenere failed symbol decoding.", correctOutput, output); assertEquals("Vigenere failed mixed case, whitespace, symbol decoding.", correctOutput, output);
} }
@Test @Test
@@ -285,7 +285,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "MESSAGE TO^ENCODE"; correctOutput = "MESSAGE TO^ENCODE";
output = cipher.decode(keyword, inputString); output = cipher.decode(keyword, inputString);
assertEquals("Vigenere failed no capital symbol decoding.", correctOutput, output); assertEquals("Vigenere failed no capital mixed case, whitespace, symbol decoding.", correctOutput, output);
} }
@Test @Test
@@ -324,7 +324,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "Messageto^encode"; correctOutput = "Messageto^encode";
output = cipher.decode(keyword, inputString); output = cipher.decode(keyword, inputString);
assertEquals("Vigenere failed no whitespace symbol decoding.", correctOutput, output); assertEquals("Vigenere failed no whitespace mixed case, whitespace, symbol decoding.", correctOutput, output);
} }
@Test @Test
@@ -363,7 +363,7 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "Message toencode"; correctOutput = "Message toencode";
output = cipher.decode(keyword, inputString); output = cipher.decode(keyword, inputString);
assertEquals("Vigenere failed no symbol symbol decoding.", correctOutput, output); assertEquals("Vigenere failed no symbol mixed case, whitespace, symbol decoding.", correctOutput, output);
} }
@Test @Test
@@ -402,6 +402,6 @@ public class TestVigenere{
keyword = "keyword"; keyword = "keyword";
correctOutput = "MESSAGETOENCODE"; correctOutput = "MESSAGETOENCODE";
output = cipher.decode(keyword, inputString); output = cipher.decode(keyword, inputString);
assertEquals("Vigenere failed secure symbol decoding.", correctOutput, output); assertEquals("Vigenere failed secure mixed case, whitespace, symbol decoding.", correctOutput, output);
} }
} }