From edaccabc9e21d27075a5184158d655a7580e36b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20B=C3=B6ck?= Date: Wed, 14 Aug 2024 19:09:17 +0200 Subject: [PATCH] [samples] Properly check for correctness in `vec_multiply` tests (#107) --- runtime/samples/vec_multiply/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/samples/vec_multiply/main.c b/runtime/samples/vec_multiply/main.c index aa4913a..fdfc21a 100644 --- a/runtime/samples/vec_multiply/main.c +++ b/runtime/samples/vec_multiply/main.c @@ -45,7 +45,7 @@ int main() { for (int i = 0; i < IREE_ARRAYSIZE(data); i++) { double value = data[i]; printf("%f\n", value); - if (value == (i + 1) * 2) continue; + if (value != (i + 1) * 2) return 1; } return 0; }