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