Skip to content

Commit

Permalink
test: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant committed May 10, 2024
1 parent cda3380 commit ee4dbfe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "no_predicates_brillig"
type = "bin"
authors = [""]
compiler_version = ">=0.27.0"

[dependencies]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
x = "10"
y = "20"
12 changes: 12 additions & 0 deletions test_programs/execution_success/no_predicates_brillig/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
unconstrained fn main(x: u32, y: pub u32) {
basic_checks(x, y);
}

#[no_predicates]
fn basic_checks(x: u32, y: u32) {
if x > y {
assert(x == 10);
} else {
assert(y == 20);
}
}

0 comments on commit ee4dbfe

Please sign in to comment.