You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly removing either pushes leaves the other vector untouched. Overwriting the the other vector only happens if both pushes are present; the last one wins.
Test with Brillig
We should have two tests: add a force_brillig: bool parameter to run_stdlib_tests and call it with true and false from two different #[test] functions.
During investigation Tom noticed that if we extract the test into a main.nr and run it with cargo run -p nargo_cli execute --force-brillig then the assertion passes. The only difference in the CompileOptions is that on the CLI inliner_aggressiveness is set to i64::MAX.
Indeed setting this to be the same in the stdlib-tests.rs solves the issue!
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.36.0 noirc version = 0.36.0+2f0cb3e80f3d93a1dee77fffacc397811e300257 (git version hash: 2f0cb3e, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Aim
Tried running the stdlib tests with Brillig to see if it makes any difference.
Expected Behavior
All tests should pass.
Bug
collections::bounded_vec::bounded_vec_tests::trait_eq::inequality
fails when executed with Brillig.To Reproduce
&CompileOptions { force_brillig: true, ..Default::default() },
cargo test -p nargo_cli --test stdlib-tests -- run_stdlib_tests trait_eq::inequality
The output is:
Workaround
None
Workaround Description
No response
Additional Context
Print the state of the vectors
Printing the value of the vectors, after pushing the value 3 to
bounded_vec2
shows that in the tests they seem to be backed by the samestorage
:Interestingly removing either pushes leaves the other vector untouched. Overwriting the the other vector only happens if both pushes are present; the last one wins.
Test with Brillig
We should have two tests: add a
force_brillig: bool
parameter torun_stdlib_tests
and call it withtrue
andfalse
from two different#[test]
functions.Done in #6352
Run with CLI
During investigation Tom noticed that if we extract the test into a
main.nr
and run it withcargo run -p nargo_cli execute --force-brillig
then the assertion passes. The only difference in theCompileOptions
is that on the CLIinliner_aggressiveness
is set toi64::MAX
.Indeed setting this to be the same in the
stdlib-tests.rs
solves the issue!Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.36.0 noirc version = 0.36.0+2f0cb3e80f3d93a1dee77fffacc397811e300257 (git version hash: 2f0cb3e, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: