Fixed that colon is now a legal character

This commit is contained in:
dankito 2020-05-12 15:51:01 +02:00
parent 5003a5bffe
commit 2dda31ec38
1 changed files with 10 additions and 10 deletions

View File

@ -29,6 +29,16 @@ class SepaMessageCreatorTest {
assertThat(result).isTrue() assertThat(result).isTrue()
} }
@Test
fun `containsOnlyAllowedCharacters colon is a legal character`() {
// when
val result = underTest.containsOnlyAllowedCharacters(":")
// then
assertThat(result).isTrue()
}
@Test @Test
fun `containsOnlyAllowedCharacters ! is an illegal character`() { fun `containsOnlyAllowedCharacters ! is an illegal character`() {
@ -59,16 +69,6 @@ class SepaMessageCreatorTest {
assertThat(result).isFalse() assertThat(result).isFalse()
} }
@Test
fun `containsOnlyAllowedCharacters colon is an illegal character`() {
// when
val result = underTest.containsOnlyAllowedCharacters(":")
// then
assertThat(result).isFalse()
}
@Test @Test
fun `containsOnlyAllowedCharacters ö is an illegal character`() { fun `containsOnlyAllowedCharacters ö is an illegal character`() {