Skip to content

Commit

Permalink
fix: tests compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Jan 18, 2024
1 parent 2a5ffee commit 481057d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1126,9 +1126,9 @@ mod test {
}

fn check_rewrite(src: &str, expected: &str) {
let (_program, context, _errors) = get_program(src);
let (_program, mut context, _errors) = get_program(src);
let main_func_id = context.def_interner.find_function("main").unwrap();
let program = monomorphize(main_func_id, &context.def_interner);
let program = monomorphize(main_func_id, &mut context.def_interner);
assert!(format!("{}", program) == expected);
}

Expand Down
2 changes: 1 addition & 1 deletion tooling/nargo/src/artifacts/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ mod tests {
let mut opcode_locations = BTreeMap::<OpcodeLocation, Vec<Location>>::new();
opcode_locations.insert(OpcodeLocation::Acir(42), vec![loc]);

let debug_symbols = vec![DebugInfo::new(opcode_locations)];
let debug_symbols = vec![DebugInfo::new(opcode_locations, (vec![], vec![]))];
let debug_artifact = DebugArtifact::new(debug_symbols, &fm);

let location_in_line = debug_artifact.location_in_line(loc).expect("Expected a range");
Expand Down

0 comments on commit 481057d

Please sign in to comment.