| 55 | } |
| 56 | |
| 57 | TEST(SorterQSort, UInt64Less) { |
| 58 | thread::ThreadPool threads(Env::Default(), "test", 16); |
| 59 | Less<uint64> less; |
| 60 | for (int num : {0, 1, 100, 1000, 10000, 100000}) { |
| 61 | for (int nth : {-1, 0, 4, 16}) { |
| 62 | std::vector<uint64> a, b; |
| 63 | GenRandomUInt64(num, &a); |
| 64 | b = a; |
| 65 | ParallelSorter sorter(nth, &threads); |
| 66 | sorter.QSort(a, less); |
| 67 | std::sort(b.begin(), b.end(), less); |
| 68 | EXPECT_EQ(a, b); |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | TEST(SorterQSort, FloatGreater) { |
| 74 | thread::ThreadPool threads(Env::Default(), "test", 16); |
nothing calls this directly
no test coverage detected