| 54 | |
| 55 | template <typename T> |
| 56 | void CheckUnique(const std::shared_ptr<T>& input, |
| 57 | const std::shared_ptr<Array>& expected) { |
| 58 | ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> result, Unique(input)); |
| 59 | ValidateOutput(*result); |
| 60 | // TODO: We probably shouldn't rely on array ordering. |
| 61 | ASSERT_ARRAYS_EQUAL(*expected, *result); |
| 62 | } |
| 63 | |
| 64 | template <typename Type, typename T> |
| 65 | void CheckUnique(const std::shared_ptr<DataType>& type, const std::vector<T>& in_values, |
no test coverage detected