Skip to content

Commit

Permalink
chore: fix stdlib test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jun 24, 2024
1 parent 614be5e commit 6fac157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion noir_stdlib/src/hash.nr
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ impl<A, B, C, D, E> Hash for (A, B, C, D, E) where A: Hash, B: Hash, C: Hash, D:
}

#[test]
fn assert_pedersen_noir(input: [Field; 10]) {
fn assert_pedersen_noir() {
// TODO: make this a fuzzer test once fuzzer supports curve-specific blackbox functions.
let input = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
assert_eq(pedersen_hash_with_separator(input, 4), pedersen_hash_with_separator_noir(input, 4));
assert_eq(pedersen_commitment_with_separator(input, 4), pedersen_commitment_with_separator_noir(input, 4));
}
3 changes: 1 addition & 2 deletions tooling/nargo_cli/tests/stdlib-tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::io::Write;
use std::{collections::BTreeMap, path::PathBuf};

use acvm::blackbox_solver::StubbedBlackBoxSolver;
use fm::FileManager;
use noirc_driver::{check_crate, compile_no_check, file_manager_with_stdlib, CompileOptions};
use noirc_frontend::hir::FunctionNameMatch;
Expand Down Expand Up @@ -56,7 +55,7 @@ fn run_stdlib_tests() {

let status = if test_function_has_no_arguments {
run_test(
&StubbedBlackBoxSolver,
&bn254_blackbox_solver::Bn254BlackBoxSolver,
&mut context,
&test_function,
false,
Expand Down

0 comments on commit 6fac157

Please sign in to comment.