TestKthOrderStatistic.cxx File Reference
Include dependency graph for TestKthOrderStatistic.cxx:
Go to the source code of this file.
Functions | |
TEST (TestSearch, KthOrderStatistic) | |
TEST (TestSearch, MinKthElement) | |
Function Documentation
TEST | ( | TestSearch | , |
KthOrderStatistic | |||
) |
Definition at line 41 of file TestKthOrderStatistic.cxx.
52 EXPECT_EQ(ksortedArray.begin() + 4, KthOrderStatistic<IT>(ksortedArray.begin(), ksortedArray.end(), 4));
55 EXPECT_EQ(ksortedArray.begin(), KthOrderStatistic<IT>(ksortedArray.begin(), ksortedArray.begin(), 0));
58 EXPECT_EQ(ksortedArray.begin(), KthOrderStatistic<IT>(ksortedArray.begin(), ksortedArray.begin() + 1, 0));
61 EXPECT_EQ(ksortedArray.begin(), KthOrderStatistic<IT>(ksortedArray.begin(), ksortedArray.end(), 0));
64 EXPECT_EQ(ksortedArray.end(), KthOrderStatistic<IT>(ksortedArray.begin(), ksortedArray.end(), 100));
IT KthOrderStatistic(const IT &begin, const IT &end, unsigned int k)
Definition: kth_order_statistic.hxx:48
TEST | ( | TestSearch | , |
MinKthElement | |||
) |
Definition at line 76 of file TestKthOrderStatistic.cxx.