File tree Expand file tree Collapse file tree
src/test/java/io/github/vbetsch/codecracker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,9 +84,22 @@ void should_returnLetterB_whenEncryptCharEndParenthesis() {
8484 CodeCracker codeCracker = new CodeCracker ();
8585
8686 // Act
87- char encryptedExclamationPoint = codeCracker .encryptChar (')' );
87+ char encryptedEndParenthesis = codeCracker .encryptChar (')' );
8888
8989 // Assert
90- assertEquals ('b' , encryptedExclamationPoint );
90+ assertEquals ('b' , encryptedEndParenthesis );
91+ }
92+
93+ @ Test
94+ void should_returnWordAB_whenEncryptExclamationPointAndEndParenthesis () {
95+ // Arrange
96+ CodeCracker codeCracker = new CodeCracker ();
97+
98+ // Act
99+ String encryptedExclamationPointAndEndParenthesis = codeCracker .encryptString ("!)" );
100+
101+ // Assert
102+ assertEquals ("ab" , encryptedExclamationPointAndEndParenthesis );
103+
91104 }
92105}
You can’t perform that action at this time.
0 commit comments