Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jan 30, 2025
1 parent 9c6c358 commit 4bb3436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_programs/noir_test_success/regression_4080/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

#[test(should_fail_with = "attempt to add with overflow")]
fn main() {
let var1: u8 = ((255 + 1) ^ (255 + 1)) - ((255 + 1) - (255 + 1));
assert_eq(var1, 0);
let var1: u8 = ((255 + 1) ^ (255 + 1) ^ (255 + 1));
assert_eq(var1 as Field, 256);
}

0 comments on commit 4bb3436

Please sign in to comment.