Fix error assert.

This commit is contained in:
kenshinx 2015-10-13 18:12:09 +08:00
parent 61f68d2b27
commit 88badfcf44
1 changed files with 2 additions and 2 deletions

View File

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