Skip to content

Commit ae8f2e6

Browse files
committed
Fix stable_t<hybrid_adapter> test for MSVC
1 parent 1808ace commit ae8f2e6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/adapters/mixed_adapters.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2023 Morwenn
2+
* Copyright (c) 2016-2025 Morwenn
33
* SPDX-License-Identifier: MIT
44
*/
55
#include <algorithm>
@@ -248,7 +248,11 @@ TEST_CASE( "stable_t<hybrid_adapter>", "[stable_adapter][hybrid_adapter]" )
248248

249249
sorter_t sorter;
250250
stable_sorter_t stable_sorter(std::move(sorter));
251-
(void)stable_sorter;
252251

253-
CHECK( true );
252+
std::list<int> li;
253+
auto distribution = dist::shuffled{};
254+
distribution(std::back_inserter(li), 100, 10'000);
255+
stable_sorter(li);
256+
257+
CHECK( std::is_sorted(li.begin(),li.end()) );
254258
}

0 commit comments

Comments
 (0)