Skip to content

Commit ffc99e4

Browse files
committed
test: should_returnLetterB_whenEncryptCharEndParenthesis
1 parent 0f0a25e commit ffc99e4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,16 @@ void should_returnLetterA_whenEncryptCharExclamationPoint() {
7777
// Assert
7878
assertEquals('a', encryptedExclamationPoint);
7979
}
80+
81+
@Test
82+
void should_returnLetterB_whenEncryptCharEndParenthesis() {
83+
// Arrange
84+
CodeCracker codeCracker = new CodeCracker();
85+
86+
// Act
87+
char encryptedExclamationPoint = codeCracker.encryptChar(')');
88+
89+
// Assert
90+
assertEquals('b', encryptedExclamationPoint);
91+
}
8092
}

0 commit comments

Comments
 (0)