We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed6b00 commit 9106eecCopy full SHA for 9106eec
halo2_proofs/src/dev.rs
@@ -568,6 +568,11 @@ impl<F: Field + Ord> MockProver<F> {
568
569
/// Returns `Ok(())` if this `MockProver` is satisfied, or a list of errors indicating
570
/// the reasons that the circuit is not satisfied.
571
+ ///
572
+ /// Note: When writing positive tests (i.e. checking that a circuit is valid), prefer using
573
+ /// [`MockProver::assert_satisfied`] which provides more readable error output. This method
574
+ /// is primarily intended for writing negative tests to check that specific invalid circuit
575
+ /// constructions fail with expected errors.
576
pub fn verify(&self) -> Result<(), Vec<VerifyFailure>> {
577
let n = self.n as i32;
578
0 commit comments