Skip to content

Commit b629ba5

Browse files
committed
clang-format
1 parent f19214a commit b629ba5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test-qsort-common.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ void IS_ARR_PARTITIONED(std::vector<T> arr,
6969
}
7070
// ( 2) Elements to the left of k should be atmost arr[k]
7171
if (k >= 1) {
72-
T max_left = *std::max_element(
73-
arr.begin(), arr.begin() + k - 1, cmp_less);
72+
T max_left
73+
= *std::max_element(arr.begin(), arr.begin() + k - 1, cmp_less);
7474
if (!cmp_geq(arr[k], max_left)) {
7575
REPORT_FAIL("incorrect left partition", arr.size(), type, k);
7676
}
7777
}
7878
// 3) Elements to the right of k should be atleast arr[k]
7979
if (k != (size_t)(arr.size() - 1)) {
80-
T min_right = *std::min_element(
81-
arr.begin() + k + 1, arr.end(), cmp_less);
80+
T min_right
81+
= *std::min_element(arr.begin() + k + 1, arr.end(), cmp_less);
8282
if (!cmp_leq(arr[k], min_right)) {
8383
REPORT_FAIL("incorrect right partition", arr.size(), type, k);
8484
}

tests/test-qsort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ TYPED_TEST_P(simdsort, test_qsort_descending)
5555
bool hasnan = (type == "rand_with_nan") ? true : false;
5656
for (auto size : this->arrsize) {
5757
std::vector<TypeParam> basearr = get_array<TypeParam>(type, size);
58-
58+
5959
// Descending order
6060
std::vector<TypeParam> arr = basearr;
6161
std::vector<TypeParam> sortedarr = arr;

0 commit comments

Comments
 (0)