| 191 | } |
| 192 | |
| 193 | void AssertChunkedEquivalent(const ChunkedArray& expected, const ChunkedArray& actual, |
| 194 | const EqualOptions& options) { |
| 195 | // XXX: AssertChunkedEqual in gtest_util.h does not permit the chunk layouts |
| 196 | // to be different |
| 197 | if (!actual.Equals(expected, options)) { |
| 198 | std::stringstream pp_expected; |
| 199 | std::stringstream pp_actual; |
| 200 | ::arrow::PrettyPrintOptions options(/*indent=*/2); |
| 201 | options.window = 50; |
| 202 | ARROW_EXPECT_OK(PrettyPrint(expected, options, &pp_expected)); |
| 203 | ARROW_EXPECT_OK(PrettyPrint(actual, options, &pp_actual)); |
| 204 | FAIL() << "Got: \n" << pp_actual.str() << "\nExpected: \n" << pp_expected.str(); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void AssertChunkedApproxEquivalent(const ChunkedArray& expected, |
| 209 | const ChunkedArray& actual, |
no test coverage detected