增加一处测试用例

This commit is contained in:
刘祥超
2023-06-02 14:58:08 +08:00
parent 1e1e6e7e81
commit 2ff4c67e57

View File

@@ -39,3 +39,8 @@ func TestIPVersion(t *testing.T) {
a.IsTrue(configutils.IPVersion(net.ParseIP("::1")) == 6)
a.IsTrue(configutils.IPVersion(net.ParseIP("2001:0db8:85a3:0000:0000:8a2e:0370:7334")) == 6)
}
func TestQuoteIP(t *testing.T) {
t.Log(configutils.QuoteIP(configutils.QuoteIP("2001:da8:22::10")))
}