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

@@ -0,0 +1,13 @@
package be.mygod.vpnhotspot.net
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(MacAddressCompat.fromString(test).toString(), true))
}
}
}