From 88badfcf44521cd5223c66b0ca2d17170ec37ccb Mon Sep 17 00:00:00 2001 From: kenshinx Date: Tue, 13 Oct 2015 18:12:09 +0800 Subject: [PATCH] Fix error assert. --- hosts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts_test.go b/hosts_test.go index af70747..2a795a8 100644 --- a/hosts_test.go +++ b/hosts_test.go @@ -20,8 +20,8 @@ func TestHostDomainAndIP(t *testing.T) { So(f.isDomain("2001:470:20::2"), ShouldEqual, false) }) - Convey("`host` should be domain and not IP", func() { - So(f.isDomain("host"), ShouldEqual, true) + Convey("`host` should not be domain and not IP", func() { + So(f.isDomain("host"), ShouldEqual, false) So(f.isIP("host"), ShouldEqual, false) })