Skip to content

Commit df6a206

Browse files
committed
test: should_returnWordAB_whenEncryptExclamationPointAndEndParenthesis
1 parent ffc99e4 commit df6a206

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

src/test/java/io/github/vbetsch/codecracker/CodeCrackerTest.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)