mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-16 02:34:57 -04:00
18 lines
482 B
Kotlin
18 lines
482 B
Kotlin
package com.geeksville.mesh
|
|
|
|
import androidx.test.ext.junit.runners.AndroidJUnit4
|
|
import com.geeksville.mesh.model.ChannelSet
|
|
import org.junit.Assert
|
|
import org.junit.Test
|
|
import org.junit.runner.RunWith
|
|
|
|
@RunWith(AndroidJUnit4::class)
|
|
class ChannelTest {
|
|
@Test
|
|
fun channelUrlGood() {
|
|
val ch = ChannelSet()
|
|
|
|
Assert.assertTrue(ch.getChannelUrl().toString().startsWith(ChannelSet.prefix))
|
|
Assert.assertEquals(ChannelSet(ch.getChannelUrl()), ch)
|
|
}
|
|
} |