Skip to content

Commit 7b88926

Browse files
authored
chore: Slightly more lenient test for error message on Windows (#515)
A follow-up to #514 for a case I missed. Again, we can do slightly better with printing large numbers in error messages (particularly on Windows), but for now the message will at least signal the gist of what happened.
1 parent 9f96d24 commit 7b88926

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/nanoarrow/array_test.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,9 +1486,11 @@ TEST(ArrayTest, ArrayTestAppendToRunEndEncodedArray) {
14861486
array.offset = INT32_MAX;
14871487
EXPECT_EQ(ArrowArrayFinishBuilding(&array, NANOARROW_VALIDATION_LEVEL_FULL, &error),
14881488
EINVAL);
1489-
EXPECT_STREQ(ArrowErrorMessage(&error),
1490-
"Offset + length of a run-end encoded array must fit in a value of the "
1491-
"run end type int32, but offset + length is 2147483654");
1489+
EXPECT_THAT(
1490+
ArrowErrorMessage(&error),
1491+
::testing::StartsWith(
1492+
"Offset + length of a run-end encoded array must fit in a value of the "
1493+
"run end type int32, but offset + length is"));
14921494

14931495
((struct ArrowArrayPrivateData*)(array.children[0]->private_data))->storage_type =
14941496
NANOARROW_TYPE_INT16;

0 commit comments

Comments
 (0)