Skip to content

Commit

Permalink
Fix default hash assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jappeace committed Sep 22, 2021
1 parent a10bb6b commit 7a4681c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Regressions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,13 @@ assertDefaultHash = do
-- appear to be set, we get the warning, yet the
-- larger value in upstream is still being used.
-- https://github.com/haskell-unordered-containers/hashable/blob/master/src/Data/Hashable/Class.hs#L221
#if MIN_VERSION_hashable(1,3,1)
HAS.hash someString @=?
HAS.hashWithSalt 14695981039346656037 someString
#else
HAS.hash someString @=?
HAS.hashWithSalt 0xdc36d1615b7400a4 someString
#endif

------------------------------------------------------------------------
-- * Test list
Expand Down

0 comments on commit 7a4681c

Please sign in to comment.