mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-09 14:35:27 -04:00
refactor: convert ChannelSet to protobuf extensions
This commit is contained in:
@@ -9,7 +9,7 @@ class ChannelSetTest {
|
||||
@Test
|
||||
fun matchPython() {
|
||||
val url = Uri.parse("https://meshtastic.org/e/#CgMSAQESBggBQANIAQ")
|
||||
val cs = ChannelSet(url)
|
||||
val cs = url.toChannelSet()
|
||||
Assert.assertEquals("LongFast", cs.primaryChannel!!.name)
|
||||
Assert.assertEquals("#LongFast-I", cs.primaryChannel!!.humanName)
|
||||
Assert.assertEquals(url, cs.getChannelUrl(false))
|
||||
|
||||
Reference in New Issue
Block a user