chore: fix test
This commit is contained in:
parent
55691e2951
commit
995136d46b
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ let m : PersistentHashMap Nat Nat := {};
|
|||
m.insert 1 1
|
||||
|
||||
def natDiffHash : Hashable Nat :=
|
||||
⟨fun n => USize.ofNat $ n+10⟩
|
||||
⟨fun n => UInt64.ofNat $ n+10⟩
|
||||
|
||||
-- The following example should fail since the `Hashable` instance used to create `m` is not `natDiffHash`
|
||||
#eval @PersistentHashMap.find? Nat Nat _ natDiffHash m 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue