Fixed finding city
This commit is contained in:
parent
c08dd1379a
commit
6e1185a38c
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue