Skip to content

Commit

Permalink
move regression test for std::println to merkle_insert
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Feb 21, 2023
1 parent a0b7daf commit 1261622
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions crates/nargo/tests/test_data/merkle_insert/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fn main(
constrain new_leaf_exists == 1;

let h = std::hash::mimc_bn254(mimc_input);
std::println(h);
constrain h == 18226366069841799622585958305961373004333097209608110160936134895615261821931;
}

3 changes: 0 additions & 3 deletions crates/nargo/tests/test_data/strings/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ fn main(message : pub str<11>, y : Field, hex_as_string : str<4>, hex_as_field :

let hash = std::hash::pedersen([x]);
std::println(hash);

let mimc_hash = std::hash::mimc_bn254(array);
std::println(mimc_hash);

constrain hex_as_string == "0x41";
// constrain hex_as_string != 0x41; This will fail with a type mismatch between str[4] and Field
Expand Down

0 comments on commit 1261622

Please sign in to comment.