| 80 | |
| 81 | template <typename T, typename CompareFunctor> |
| 82 | void AssertTsSame(const T& expected, const T& actual, CompareFunctor&& compare) { |
| 83 | if (!compare(actual, expected)) { |
| 84 | std::stringstream pp_expected; |
| 85 | std::stringstream pp_actual; |
| 86 | ::arrow::PrettyPrintOptions options(/*indent=*/2); |
| 87 | options.window = 50; |
| 88 | ARROW_EXPECT_OK(PrettyPrint(expected, options, &pp_expected)); |
| 89 | ARROW_EXPECT_OK(PrettyPrint(actual, options, &pp_actual)); |
| 90 | FAIL() << "Got: \n" << pp_actual.str() << "\nExpected: \n" << pp_expected.str(); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | template <typename CompareFunctor> |
| 95 | void AssertArraysEqualWith(const Array& expected, const Array& actual, bool verbose, |
no test coverage detected