Skip to content

Commit

Permalink
Bug fix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r-devulap committed Oct 13, 2023
1 parent fceccc3 commit 68e5393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-qsort-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
template <typename T>
void IS_SORTED(std::vector<T> sorted, std::vector<T> arr, std::string type)
{
if (memcmp(arr.data(), sorted.data(), arr.size() * sizeof(T) != 0)) {
if (memcmp(arr.data(), sorted.data(), arr.size() * sizeof(T)) != 0) {
REPORT_FAIL("Array not sorted", arr.size(), type, -1);
}
}
Expand Down

0 comments on commit 68e5393

Please sign in to comment.