Fix SubnetTest

This commit is contained in:
Mygod
2017-12-14 12:41:09 -08:00
parent 9a2643ec2c
commit 9352f2dfe7
3 changed files with 12 additions and 26 deletions
@@ -1,11 +1,10 @@
package com.github.shadowsocks.utils
import com.github.shadowsocks.utils.Subnet
import org.junit.Assert
import org.junit.Test
import java.net.InetAddress
object SubnetTest {
class SubnetTest {
@Test
fun parsingAndEquals() {
Assert.assertEquals(Subnet(InetAddress.getByName("1.10.11.12"), 25), Subnet.fromString("1.10.11.12/25"))