From b6e606b5c5b28f3497e0ce1124f79ddba7caa7a0 Mon Sep 17 00:00:00 2001
From: joss-aztec <94053499+joss-aztec@users.noreply.github.com>
Date: Thu, 4 May 2023 12:53:03 +0100
Subject: [PATCH] chore(tests): use assert instead of constrain (#1288)

---
 .../tests/test_data/array_dynamic/src/main.nr          | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/crates/nargo_cli/tests/test_data/array_dynamic/src/main.nr b/crates/nargo_cli/tests/test_data/array_dynamic/src/main.nr
index 73dc162eb1b..23041188724 100644
--- a/crates/nargo_cli/tests/test_data/array_dynamic/src/main.nr
+++ b/crates/nargo_cli/tests/test_data/array_dynamic/src/main.nr
@@ -6,15 +6,15 @@ fn main(x: [u32; 5], mut z: u32, t: u32) {
 }
 
 fn dyn_array(mut x: [u32; 5], y: Field, z: Field) {
-    constrain x[y] == 111;
-    constrain x[z] == 101;
+    assert(x[y] == 111);
+    assert(x[z] == 101);
     x[z] = 0;
-    constrain x[y] == 111;
-    constrain x[1] == 0;
+    assert(x[y] == 111);
+    assert(x[1] == 0);
     if y as u32 < 10 {
       x[y] = x[y] - 2;
     } else {
       x[y] = 0;
     }
-    constrain x[4] == 109;
+    assert(x[4] == 109);
 }
\ No newline at end of file