diff --git a/fastping_test.go b/fastping_test.go index 5f8b5bd..12dd2f4 100644 --- a/fastping_test.go +++ b/fastping_test.go @@ -47,6 +47,10 @@ func TestRemoveIP(t *testing.T) { t.Fatalf("AddIP length check failed") } + if err := p.RemoveIP("127.0"); err == nil { + t.Fatal("RemoveIP, invalid IP should fail") + } + if err := p.RemoveIP("127.0.0.1"); err != nil { t.Fatalf("RemoveIP failed: %v", err) }