Fix error assert.
This commit is contained in:
parent
61f68d2b27
commit
88badfcf44
|
@ -20,8 +20,8 @@ func TestHostDomainAndIP(t *testing.T) {
|
||||||
So(f.isDomain("2001:470:20::2"), ShouldEqual, false)
|
So(f.isDomain("2001:470:20::2"), ShouldEqual, false)
|
||||||
})
|
})
|
||||||
|
|
||||||
Convey("`host` should be domain and not IP", func() {
|
Convey("`host` should not be domain and not IP", func() {
|
||||||
So(f.isDomain("host"), ShouldEqual, true)
|
So(f.isDomain("host"), ShouldEqual, false)
|
||||||
So(f.isIP("host"), ShouldEqual, false)
|
So(f.isIP("host"), ShouldEqual, false)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue