Skip to content

Commit

Permalink
chore: add test case for brillig array equality assertion (#3936)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves AztecProtocol/aztec-packages#3752

## Summary\*

This PR adds a regression test for
AztecProtocol/aztec-packages#3752 which was
fixed in #3916.

## Additional Context

## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench committed Jan 3, 2024
1 parent 99c2c5a commit 64c144a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_programs/execution_success/brillig_array_eq/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "brillig_array_eq"
type = "bin"
authors = [""]

[dependencies]
2 changes: 2 additions & 0 deletions test_programs/execution_success/brillig_array_eq/Prover.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
a = [77,75,108,209,54,16,50,202,155,210,174,185,217,0,170,77,69,217,234,216,10,201,66,51,116,196,81,167,37,77,7,102]
b = [77,75,108,209,54,16,50,202,155,210,174,185,217,0,170,77,69,217,234,216,10,201,66,51,116,196,81,167,37,77,7,102]
4 changes: 4 additions & 0 deletions test_programs/execution_success/brillig_array_eq/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Simple example of checking where two arrays are equal
unconstrained fn main(a: [Field; 32], b: [Field; 32]) {
assert(a == b);
}

0 comments on commit 64c144a

Please sign in to comment.