diff --git a/test/test_array.cpp b/test/test_array.cpp index 3a9423fc..4ba8c6aa 100644 --- a/test/test_array.cpp +++ b/test/test_array.cpp @@ -23,7 +23,7 @@ TEST_CASE("array nominal element access (GPU)", "[array][GPU]") { // Can we read from it on the GPU? int count = 0; auto func = PORTABLE_LAMBDA(const int i, int &count) mutable { - if (arr[i] = i + 1) { + if (arr[i] == i + 1) { ++count; } };