Skip to content

Commit 68e5393

Browse files
author
Raghuveer Devulapalli
committed
Bug fix in tests
1 parent fceccc3 commit 68e5393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-qsort-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
template <typename T>
2424
void IS_SORTED(std::vector<T> sorted, std::vector<T> arr, std::string type)
2525
{
26-
if (memcmp(arr.data(), sorted.data(), arr.size() * sizeof(T) != 0)) {
26+
if (memcmp(arr.data(), sorted.data(), arr.size() * sizeof(T)) != 0) {
2727
REPORT_FAIL("Array not sorted", arr.size(), type, -1);
2828
}
2929
}

0 commit comments

Comments
 (0)