tpl/partials: Allow any key type in partialCached

Fixes #6572
This commit is contained in:
Bjørn Erik Pedersen
2019-12-02 21:10:27 +01:00
parent 40a092b068
commit 0efb00c2a8
9 changed files with 160 additions and 55 deletions

View File

@@ -34,10 +34,3 @@ func TestResourceTransformationKey(t *testing.T) {
c := qt.New(t)
c.Assert(key.Value(), qt.Equals, "testing_518996646957295636")
}
func TestHashString(t *testing.T) {
c := qt.New(t)
c.Assert(HashString("a", "b"), qt.Equals, "2712570657419664240")
c.Assert(HashString("ab"), qt.Equals, "590647783936702392")
}