Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions acvm-repo/acir/src/circuit/opcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
match databus {
BlockType::Memory => write!(f, "INIT ")?,
BlockType::CallData(id) => write!(f, "INIT CALLDATA {} ", id)?,
BlockType::ReturnData => write!(f, "INIT RETURNDATA ")?,

Check warning on line 176 in acvm-repo/acir/src/circuit/opcodes.rs

View workflow job for this annotation

GitHub Actions / Code

Unknown word (RETURNDATA)
}
let witnesses =
init.iter().map(|w| format!("_{}", w.0)).collect::<Vec<String>>().join(", ");
Expand Down Expand Up @@ -245,4 +245,16 @@
@"BLACKBOX::XOR [(_0, 32), (_1, 32)] [_3]"
);
}

#[test]
fn range_display_snapshot() {
let range: Opcode<FieldElement> = Opcode::BlackBoxFuncCall(BlackBoxFuncCall::RANGE {
input: FunctionInput::witness(0.into(), 32),
});

insta::assert_snapshot!(
range.to_string(),
@"BLACKBOX::RANGE [(_0, 32)] []"
);
}
}
Loading