From 88ae13f80d09f7317cdd189407be992532459119 Mon Sep 17 00:00:00 2001 From: schaeff Date: Wed, 15 Jun 2022 15:52:26 +0200 Subject: [PATCH] fix integration tests --- zokrates_cli/tests/code/n_choose_k.zok | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zokrates_cli/tests/code/n_choose_k.zok b/zokrates_cli/tests/code/n_choose_k.zok index b5e820d7..519a2f15 100644 --- a/zokrates_cli/tests/code/n_choose_k.zok +++ b/zokrates_cli/tests/code/n_choose_k.zok @@ -2,8 +2,8 @@ import "utils/casts/u32_to_field" as to_field // Binomial Coeffizient, n!/(k!*(n-k)!). def fac(field x) -> field: - field f = 1 - field counter = 0 + field mut f = 1 + field mut counter = 0 for u32 i in 1..100 do f = if counter == x then f else f * to_field(i) fi counter = if counter == x then counter else counter + 1 fi