Add a unit test

This commit is contained in:
Mygod
2018-10-25 12:48:58 +08:00
parent e6bdbd23a9
commit ffbbfcdc29
2 changed files with 13 additions and 1 deletions

1
mobile/.gitignore vendored
View File

@@ -4,4 +4,3 @@ release/
# tests aren't ready yet
/src/androidTest
/src/test

View File

@@ -0,0 +1,13 @@
package be.mygod.vpnhotspot.room
import org.junit.Assert.*
import org.junit.Test
class ConvertersTest {
@Test
fun macSerialization() {
for (test in listOf("01:23:45:67:89:ab", "DE:AD:88:88:BE:EF")) {
assertTrue(test.equals(test.macToLong().macToString(), true))
}
}
}