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

How to test any .rs file #63

Open
Subway2023 opened this issue Oct 14, 2024 · 0 comments
Open

How to test any .rs file #63

Subway2023 opened this issue Oct 14, 2024 · 0 comments

Comments

@Subway2023
Copy link

A bug report reported a bug (ModGadget is underconstrained) in modulo.rs, and I want to test whether halo2-analyzer can detect this bug.

I don't know how to test modulo.rs because the circuit variable cannot be directly obtained in modulo.rs, unlike the example given in integration_tests_scroll.rs.

integration_tests_scroll.rs

let circuit = sample_circuits::math_gadget::test_util::UnitTestMathGadgetBaseCircuit::<sample_circuits::math_gadget::test_util::modulo::ModGadgetTestContainer>::new(K, witnesses);
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

No branches or pull requests

1 participant