Skip to content

Commit 6fac157

Browse files
committed
chore: fix stdlib test
1 parent 614be5e commit 6fac157

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

noir_stdlib/src/hash.nr

+3-1
Original file line numberDiff line numberDiff line change
@@ -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:
259259
}
260260

261261
#[test]
262-
fn assert_pedersen_noir(input: [Field; 10]) {
262+
fn assert_pedersen_noir() {
263+
// TODO: make this a fuzzer test once fuzzer supports curve-specific blackbox functions.
264+
let input = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
263265
assert_eq(pedersen_hash_with_separator(input, 4), pedersen_hash_with_separator_noir(input, 4));
264266
assert_eq(pedersen_commitment_with_separator(input, 4), pedersen_commitment_with_separator_noir(input, 4));
265267
}

tooling/nargo_cli/tests/stdlib-tests.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::io::Write;
22
use std::{collections::BTreeMap, path::PathBuf};
33

4-
use acvm::blackbox_solver::StubbedBlackBoxSolver;
54
use fm::FileManager;
65
use noirc_driver::{check_crate, compile_no_check, file_manager_with_stdlib, CompileOptions};
76
use noirc_frontend::hir::FunctionNameMatch;
@@ -56,7 +55,7 @@ fn run_stdlib_tests() {
5655

5756
let status = if test_function_has_no_arguments {
5857
run_test(
59-
&StubbedBlackBoxSolver,
58+
&bn254_blackbox_solver::Bn254BlackBoxSolver,
6059
&mut context,
6160
&test_function,
6261
false,

0 commit comments

Comments
 (0)