改进单元测试

This commit is contained in:
刘祥超
2022-04-14 15:21:20 +08:00
parent e75248ad6b
commit f855996d53

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)
}