mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix packet display in debug panel
make the test work with any non US default Locale remove java-lite usage fix a test
This commit is contained in:
parent
f9e39b66a4
commit
336d283c82
7 changed files with 134 additions and 76 deletions
|
|
@ -1,7 +1,5 @@
|
|||
package com.geeksville.mesh
|
||||
|
||||
|
||||
import androidx.compose.frames.open
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import com.geeksville.mesh.model.Channel
|
||||
import org.junit.Assert
|
||||
|
|
@ -12,11 +10,9 @@ import org.junit.runner.RunWith
|
|||
class ChannelTest {
|
||||
@Test
|
||||
fun channelUrlGood() {
|
||||
open() // Needed to make Compose think we are inside a Frame
|
||||
val ch = Channel.emulated
|
||||
|
||||
Assert.assertTrue(ch.getChannelUrl().toString().startsWith(Channel.prefix))
|
||||
Assert.assertEquals(Channel(ch.getChannelUrl()), ch)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue