Skip to content

Commit 2265662

Browse files
author
Akihiro Nagai
authored
[Fix] small bug fix (#582)
* update WiFiChannelCountryTest to use locale-specific display country name * update WiFiChannelsParameterizedTest imports and lambda syntax
1 parent 58fda6a commit 2265662

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelCountryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class WiFiChannelCountryTest {
3333
val expected = Locale.US
3434
val actual = WiFiChannelCountry.find(expected.country)
3535
assertThat(actual.countryCode).isEqualTo(expected.country)
36-
assertThat(actual.countryName(expected)).isEqualTo(expected.displayCountry)
36+
assertThat(actual.countryName(expected)).isEqualTo(expected.getDisplayCountry(expected))
3737
}
3838

3939
@Test

app/src/test/kotlin/com/vrem/wifianalyzer/wifi/band/WiFiChannelsParameterizedTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ package com.vrem.wifianalyzer.wifi.band
2020
import com.vrem.util.EMPTY
2121
import com.vrem.wifianalyzer.wifi.model.WiFiWidth
2222
import org.assertj.core.api.Assertions.assertThat
23+
import org.junit.Test
2324
import org.junit.runner.RunWith
2425
import org.junit.runners.Parameterized
2526
import org.junit.runners.Parameterized.Parameter
2627
import org.junit.runners.Parameterized.Parameters
27-
import kotlin.test.Test
2828

2929
@RunWith(Parameterized::class)
3030
class WiFiChannelsParameterizedTest {
@@ -166,7 +166,7 @@ class WiFiChannelsParameterizedTest {
166166
@Test
167167
fun availableChannelsUsingWiFiBandAndCountry() {
168168
countries.forEach { country ->
169-
assertThat(fixture.availableChannels(wiFiBand, country.countryCode).map { it -> it.channel })
169+
assertThat(fixture.availableChannels(wiFiBand, country.countryCode).map { it.channel })
170170
.describedAs("Country: ${country.countryCode}")
171171
.containsExactlyElementsOf(country.channels(wiFiBand))
172172
}

0 commit comments

Comments
 (0)