Fix reading proof from file in circuit test

This commit is contained in:
alexeykoren 2022-09-06 12:51:39 +02:00
parent ac71bc7528
commit 8185ad4731
3 changed files with 2 additions and 1 deletions

BIN
circuit_proof_test_case.bin Normal file

Binary file not shown.

View File

@ -893,6 +893,7 @@ impl Proof {
#[cfg(test)]
mod tests {
use core::iter;
use std::fs;
use ff::Field;
use halo2_proofs::{circuit::Value, dev::MockProver};
@ -1097,7 +1098,7 @@ mod tests {
// Parse the hardcoded proof test case.
let (instance, proof) = {
let test_case_bytes = include_bytes!("circuit_proof_test_case.bin");
let test_case_bytes = fs::read("circuit_proof_test_case.bin").unwrap();
read_test_case(&test_case_bytes[..]).expect("proof must be valid")
};
assert_eq!(proof.0.len(), 4992);

Binary file not shown.