Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed May 8, 2024
1 parent e527d25 commit ca9b94c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions noir/noir-repo/tooling/backend_interface/src/cli/gates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ fn gate_command() -> Result<(), BackendError> {
let output = gate_command.run(backend.binary_path())?;
// Mock backend always returns zero gates.
assert_eq!(output.len(), 1);
assert_eq!(output[0].acir_opcodes, 0);
assert_eq!(output[0].circuit_size, 0);
assert_eq!(output[0].acir_opcodes, 123);
assert_eq!(output[0].circuit_size, 125);

Ok(())
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(crate) struct GatesCommand {
pub(crate) fn run(args: GatesCommand) {
assert!(args.bytecode_path.is_file(), "Could not find bytecode file at provided path");

let response: &str = r#"{ "functions": [{"acir_opcodes": 123, "circuit_size": 123 }] }"#;
let response: &str = r#"{ "functions": [{"acir_opcodes": 123, "circuit_size": 125 }] }"#;

std::io::stdout().write_all(response.as_bytes()).unwrap();
}

0 comments on commit ca9b94c

Please sign in to comment.