Skip to content

How to test any .rs file #63

@Subway2023

Description

@Subway2023

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions