kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix ChannelSetTest
rodzic
a3aa2a51aa
commit
bfb9c9ea56
|
@ -8,10 +8,10 @@ class ChannelSetTest {
|
||||||
/** make sure we match the python and device code behavior */
|
/** make sure we match the python and device code behavior */
|
||||||
@Test
|
@Test
|
||||||
fun matchPython() {
|
fun matchPython() {
|
||||||
val url = Uri.parse("https://meshtastic.org/e/#CgUYAiIBAQ")
|
val url = Uri.parse("https://meshtastic.org/e/#CgMSAQESAA")
|
||||||
val cs = ChannelSet(url)
|
val cs = ChannelSet(url)
|
||||||
Assert.assertEquals("LongFast", cs.primaryChannel!!.name)
|
Assert.assertEquals("LongFast", cs.primaryChannel!!.name)
|
||||||
Assert.assertEquals("#LongFast-K", cs.primaryChannel!!.humanName)
|
Assert.assertEquals("#LongFast-I", cs.primaryChannel!!.humanName)
|
||||||
Assert.assertEquals(url, cs.getChannelUrl(false))
|
Assert.assertEquals(url, cs.getChannelUrl(false))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue