Files
EdgeNode/internal/utils/ip_test.go

12 lines
225 B
Go
Raw Normal View History

2021-01-21 11:00:46 +08:00
package utils
import "testing"
func TestIP2Long(t *testing.T) {
t.Log(IP2Long("0.0.0.0"))
t.Log(IP2Long("1.0.0.0"))
t.Log(IP2Long("0.0.0.0.0"))
t.Log(IP2Long("2001:db8:0:1::101"))
t.Log(IP2Long("2001:db8:0:1::102"))
2021-01-21 11:00:46 +08:00
}