Skip to content

Commit

Permalink
[samples] Properly check for correctness in vec_multiply tests (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero9178 authored Aug 14, 2024
1 parent fae1b87 commit edaccab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/samples/vec_multiply/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit edaccab

Please sign in to comment.