aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_sections_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-08-17 09:43:39 +0200
committerBjørn Erik Pedersen <[email protected]>2017-08-17 09:43:39 +0200
commit2a2e690707bcce8e3a157113356ebca572bc1be6 (patch)
treeb381d58065078576743335a141569f725e539a5d /hugolib/site_sections_test.go
parenta7555c54310612a746d34361a2d58f62207349bb (diff)
downloadhugo-2a2e690707bcce8e3a157113356ebca572bc1be6.tar.gz
hugo-2a2e690707bcce8e3a157113356ebca572bc1be6.zip
hugolib: Simplify Page.Eq
Diffstat (limited to 'hugolib/site_sections_test.go')
-rw-r--r--hugolib/site_sections_test.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/hugolib/site_sections_test.go b/hugolib/site_sections_test.go
index 355b74bb6..37752467b 100644
--- a/hugolib/site_sections_test.go
+++ b/hugolib/site_sections_test.go
@@ -150,14 +150,9 @@ PAG|{{ .Title }}|{{ $sect.InSection . }}
assert.NotNil(d)
assert.Equal("T41_-1", d.Title)
- equals, err := c.Eq(d)
- assert.NoError(err)
- assert.False(equals)
- equals, err = c.Eq(c)
- assert.NoError(err)
- assert.True(equals)
- _, err = c.Eq("asdf")
- assert.Error(err)
+ assert.False(c.Eq(d))
+ assert.True(c.Eq(c))
+ assert.False(c.Eq("asdf"))
}},
{"empty3", func(p *Page) {