Fixed finding city

This commit is contained in:
dankl 2019-10-20 23:45:52 +02:00 committed by dankito
parent c08dd1379a
commit 6e1185a38c
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ open class BankFinder {
return getBankList().filter { return getBankList().filter {
it.name.toLowerCase().contains(queryLowerCase) it.name.toLowerCase().contains(queryLowerCase)
|| it.bankCode.startsWith(query) || it.bankCode.startsWith(query)
|| it.city.contains(queryLowerCase) || it.city.toLowerCase().contains(queryLowerCase)
} }
} }

View File

@ -26,7 +26,7 @@ class BankFinderTest {
val result = underTest.findBankByNameBankCodeOrCity("starnberg") val result = underTest.findBankByNameBankCodeOrCity("starnberg")
// then // then
assertThat(result).hasSize(66) assertThat(result).hasSize(71)
} }
@Test @Test