diff options
Diffstat (limited to 'AK/Tests/TestQuickSort.cpp')
-rw-r--r-- | AK/Tests/TestQuickSort.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Tests/TestQuickSort.cpp b/AK/Tests/TestQuickSort.cpp index 8902de967f..d976e07b81 100644 --- a/AK/Tests/TestQuickSort.cpp +++ b/AK/Tests/TestQuickSort.cpp @@ -60,7 +60,7 @@ TEST_CASE(sorts_without_copy) for (size_t i = 0; i < 64; ++i) array[i].value = (64 - i) % 32 + 32; - AK::single_pivot_quick_sort(&array[0], &array[64], [](auto& a, auto& b) { return a.value < b.value; }); + AK::single_pivot_quick_sort(array.begin(), array.end(), [](auto& a, auto& b) { return a.value < b.value; }); for (size_t i = 0; i < 63; ++i) EXPECT(array[i].value <= array[i + 1].value); |