File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,18 @@ class CaesarShiftTest {
66 @ Test
77 public void caesarShift_convertCase_String () {
88 CaesarShift testCase = new CaesarShift ();
9- assertEquals ("A " , testCase .encrypt ("a" ));
9+ assertEquals ("Z " , testCase .encrypt ("a" ));
1010 }
1111
1212 @ Test
13- public void caesarShift_encryptChar_String (){
14- CaesarShift testType = new CaesarShift ();
15- assertEquals ("Y" , testType .encrypt ("Z" ));
13+ public void caesarShift_encryptSingleChar_String (){
14+ CaesarShift encryptChar = new CaesarShift ();
15+ assertEquals ("Y" , encryptChar .encrypt ("Z" ));
1616 }
1717
18+ @ Test
19+ void caesarShift_encryptString_String () {
20+ CaesarShift encryptString = new CaesarShift ();
21+ assertEquals ("GDKKN" , encryptString .encrypt ("hello" ));
22+ }
1823}
You can’t perform that action at this time.
0 commit comments