Skip to content

Commit

Permalink
Added poseidon tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davibauer committed Jun 22, 2023
1 parent c12aee1 commit cedd8da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/contracts-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ jobs:

- name: Run generate-poseidon
run: pnpm contracts generate-poseidon

- name: Run test-poseidon
run: pnpm contracts test-poseidon
3 changes: 3 additions & 0 deletions contracts/poseidon/tests/poseidon-tests.repl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(load "../src/lib.repl")
(expect "poseidon" 12717992376338182279477285556390228582603857817939167998284243525425604090033 (poseidon [1 2]))
(expect "poseidon" 1069652563792426660145833190237336045845917811967528486535167837537743676741 (poseidon [999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 88888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888]))

0 comments on commit cedd8da

Please sign in to comment.