diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-02 21:10:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-03 00:13:47 +0100 |
commit | 0efb00c2a86ec3f52000a643f26f54bb2a9dfbd6 (patch) | |
tree | 370d64135277eaa825ead0c25d33e99eb218087e /resources/images | |
parent | 40a092b0687d44ecb53ef1fd53001a6299345780 (diff) |
tpl/partials: Allow any key type in partialCached
Fixes #6572
Diffstat (limited to 'resources/images')
-rw-r--r-- | resources/images/filters_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/images/filters_test.go b/resources/images/filters_test.go index 658a9a427..1243e483b 100644 --- a/resources/images/filters_test.go +++ b/resources/images/filters_test.go @@ -16,7 +16,7 @@ package images import ( "testing" - "github.com/gohugoio/hugo/resources/internal" + "github.com/gohugoio/hugo/helpers" qt "github.com/frankban/quicktest" ) @@ -26,9 +26,9 @@ func TestFilterHash(t *testing.T) { f := &Filters{} - c.Assert(internal.HashString(f.Grayscale()), qt.Equals, internal.HashString(f.Grayscale())) - c.Assert(internal.HashString(f.Grayscale()), qt.Not(qt.Equals), internal.HashString(f.Invert())) - c.Assert(internal.HashString(f.Gamma(32)), qt.Not(qt.Equals), internal.HashString(f.Gamma(33))) - c.Assert(internal.HashString(f.Gamma(32)), qt.Equals, internal.HashString(f.Gamma(32))) + c.Assert(helpers.HashString(f.Grayscale()), qt.Equals, helpers.HashString(f.Grayscale())) + c.Assert(helpers.HashString(f.Grayscale()), qt.Not(qt.Equals), helpers.HashString(f.Invert())) + c.Assert(helpers.HashString(f.Gamma(32)), qt.Not(qt.Equals), helpers.HashString(f.Gamma(33))) + c.Assert(helpers.HashString(f.Gamma(32)), qt.Equals, helpers.HashString(f.Gamma(32))) } |