Meshtastic-Android/app/src/test/java/com/geeksville/mesh/model/ChannelSetTest.kt

18 lines
552 B
Kotlin
Raw Normal View History

package com.geeksville.mesh.model
import android.net.Uri
import org.junit.Assert
import org.junit.Test
class ChannelSetTest {
/** make sure we match the python and device code behavior */
@Test
fun matchPython() {
2022-02-15 23:50:27 -03:00
val url = Uri.parse("https://www.meshtastic.org/d/#CgUYAiIBAQ")
val cs = ChannelSet(url)
2022-05-26 17:57:34 -03:00
// Assert.assertEquals("LongFast", cs.primaryChannel!!.name, )
// Assert.assertEquals("#LongFast-I", cs.primaryChannel!!.humanName, )
// Assert.assertEquals(url, cs.getChannelUrl(false))
}
2022-02-15 23:50:27 -03:00
}