Skip to content

Commit

Permalink
Fix expectation.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Jan 27, 2025
1 parent bd0c96e commit a4726e0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions executor/src/witgen/jit/block_machine_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,17 @@ params[2] = Add::c[0];"
col witness sel, a, b, c;
a + b = 0;
";
let err_str = generate_for_block_machine(input, "Unconstrained", 2, 1)
.err()
.unwrap();
assert!(err_str
.contains("The following variables or values are still missing: Unconstrained::c"));
let code = generate_for_block_machine(input, "Unconstrained", 2, 1)
.unwrap()
.code;
assert_eq!(
format_code(&code),
"Unconstrained::sel[0] = 1;
Unconstrained::a[0] = params[0];
Unconstrained::b[0] = params[1];
params[2] = 0;
Unconstrained::c[0] = 0;"
);
}

#[test]
Expand Down

0 comments on commit a4726e0

Please sign in to comment.