Updated failure messages
This commit is contained in:
@@ -50,7 +50,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "Wiqooxh ds^cjqfgo";
|
||||
output = cipher.encode(keyword, inputString);
|
||||
assertEquals("Vigenere failed symbol encoding.", correctOutput, output);
|
||||
assertEquals("Vigenere failed mixed case, whitespace, symbol encoding.", correctOutput, output);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -89,7 +89,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "WIQOOXH DS^CJQFGO";
|
||||
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
|
||||
@@ -128,7 +128,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "Wiqooxhds^cjqfgo";
|
||||
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
|
||||
@@ -167,7 +167,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "Wiqooxh dscjqfgo";
|
||||
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
|
||||
@@ -206,7 +206,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "WIQOOXHDSCJQFGO";
|
||||
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";
|
||||
correctOutput = "Message to^encode";
|
||||
output = cipher.decode(keyword, inputString);
|
||||
assertEquals("Vigenere failed symbol decoding.", correctOutput, output);
|
||||
assertEquals("Vigenere failed mixed case, whitespace, symbol decoding.", correctOutput, output);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -285,7 +285,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "MESSAGE TO^ENCODE";
|
||||
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
|
||||
@@ -324,7 +324,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "Messageto^encode";
|
||||
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
|
||||
@@ -363,7 +363,7 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "Message toencode";
|
||||
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
|
||||
@@ -402,6 +402,6 @@ public class TestVigenere{
|
||||
keyword = "keyword";
|
||||
correctOutput = "MESSAGETOENCODE";
|
||||
output = cipher.decode(keyword, inputString);
|
||||
assertEquals("Vigenere failed secure symbol decoding.", correctOutput, output);
|
||||
assertEquals("Vigenere failed secure mixed case, whitespace, symbol decoding.", correctOutput, output);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user