Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose and test rangeCheck64 gadget #1181

Merged
merged 17 commits into from
Oct 16, 2023

Conversation

mitschabaude
Copy link
Collaborator

@mitschabaude mitschabaude commented Oct 12, 2023

expose the range check gate added in #1176 and add a unit test

Notes:
Most of this PR consists of refactoring the equivalence() testing framework that I wanted use for the new test.
I really liked the easy-to-write and type-safe way of how I used this framework in the bindings unit test, that's why I decided to move it from the bindings repo to o1js and consolidate it with the equivalence testing logic that was already there. For a good idea of how these tests are done, see the field unit test (which changed a lot in this PR)

bindings: o1-labs/o1js-bindings#183

Copy link
Contributor

@MartinMinkov MartinMinkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! 🎉 Testing changes look great too 👍

src/lib/gadgets/range-check.ts Show resolved Hide resolved
Base automatically changed from feature/range-check-64-develop to main October 16, 2023 18:43
@mitschabaude mitschabaude merged commit 2bc9ee9 into main Oct 16, 2023
13 checks passed
@mitschabaude mitschabaude deleted the feature/refactor-equivalence-tests branch October 16, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants