mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Fixed tests
This commit is contained in:
parent
10293acafb
commit
b536b27e15
@ -5,6 +5,7 @@
|
|||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
|
|
||||||
#include <pcg_random.hpp>
|
#include <pcg_random.hpp>
|
||||||
|
#include <base/getThreadId.h>
|
||||||
|
|
||||||
/** Same as libcxx std::__debug_less. Just without dependency on private part of standard library.
|
/** Same as libcxx std::__debug_less. Just without dependency on private part of standard library.
|
||||||
* Check that Comparator induce strict weak ordering.
|
* Check that Comparator induce strict weak ordering.
|
||||||
@ -47,7 +48,7 @@ using ComparatorWrapper = DebugLessComparator<Comparator>;
|
|||||||
template <typename RandomIt, typename Compare>
|
template <typename RandomIt, typename Compare>
|
||||||
void shuffleItemsInEqualRanges(RandomIt first, RandomIt last, Compare compare)
|
void shuffleItemsInEqualRanges(RandomIt first, RandomIt last, Compare compare)
|
||||||
{
|
{
|
||||||
static pcg64 rng(randomSeed());
|
static pcg64 rng(getThreadId());
|
||||||
|
|
||||||
bool equal_range_started = false;
|
bool equal_range_started = false;
|
||||||
RandomIt equal_range_start_it;
|
RandomIt equal_range_start_it;
|
||||||
@ -113,7 +114,6 @@ void partial_sort(RandomIt first, RandomIt middle, RandomIt last, Compare compar
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template <typename RandomIt>
|
template <typename RandomIt>
|
||||||
void partial_sort(RandomIt first, RandomIt middle, RandomIt last)
|
void partial_sort(RandomIt first, RandomIt middle, RandomIt last)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user