#include #include #include "../../../src/common/common.h" namespace xgboost { namespace common { TEST(ArgSort, Basic) { std::vector inputs {3.0, 2.0, 1.0}; auto ret = ArgSort(Span{inputs}); std::vector sol{2, 1, 0}; ASSERT_EQ(ret, sol); } } // namespace common } // namespace xgboost