Skip to content

Commit

Permalink
match on value
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed Aug 16, 2023
1 parent fa5d66c commit 350b4ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pact/hash.repl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
( (h1 (get-hash "a"))
(h2 (get-hash "b"))
)
(enforce (= h1 "eU1QsrHzLyYN9620ongvIlpxzzX1KiVGbTDBT6zbh14") "h1 does not match expected value")
(enforce (= h2 "q9JZXDohMARxsVUtQWCiK7APdaiYpvqfJyq-aF3LhAA") "h2 does not match expected value")
(expect-failure "hashes do not match pre-fork" (enforce (= h1 h2) "boom"))
)

Expand All @@ -43,6 +45,7 @@
( (h1 (get-hash "a"))
(h2 (get-hash "b"))
)
(enforce (= h1 "0j95GFheG-uAWbGAjvTqV4QSGE74ZY38jxnNuHJ2p8A") "h1 does not match expected value")
(expect "hashes match post-fork" true (enforce (= h1 h2) "boom"))
)
(commit-tx)

0 comments on commit 350b4ee

Please sign in to comment.