Move MAC utils to MacAddressCompat

This commit is contained in:
Mygod
2020-05-30 02:06:41 -04:00
parent d328215764
commit e8fb62a0b3
15 changed files with 97 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
package be.mygod.vpnhotspot.room
package be.mygod.vpnhotspot.net
import org.junit.Assert.*
import org.junit.Test
@@ -7,7 +7,7 @@ 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))
assertTrue(test.equals(MacAddressCompat.fromString(test).toString(), true))
}
}
}