改进单元测试

This commit is contained in:
GoEdgeLab
2022-04-14 15:21:20 +08:00
parent 7c4ce869ab
commit 1461815a32

View File

@@ -26,10 +26,19 @@ func TestPlainServerNames(t *testing.T) {
Name: "world.com",
SubNames: nil,
},
// duplicate
{
Name: "world.com",
SubNames: nil,
},
{
Name: "",
SubNames: []string{"WoRld.com", "XYZ.com"},
},
{
Name: "*.world.com",
SubNames: nil,
},
}
logs.PrintAsJSON(PlainServerNames(serverNames), t)
}