milesgranger commented on code in PR #14395: URL: https://github.com/apache/arrow/pull/14395#discussion_r1012887599
########## cpp/src/arrow/compute/kernels/scalar_nested_test.cc: ########## @@ -116,6 +117,97 @@ TEST(TestScalarNested, ListElementInvalid) { Raises(StatusCode::Invalid)); } +void CheckListSlice(std::shared_ptr<Array> input, std::shared_ptr<Array> expected, + const ListSliceOptions& args) { + ASSERT_OK_AND_ASSIGN(auto result, CallFunction("list_slice", {input}, &args)); + ASSERT_EQ(result, expected); Review Comment: Ah how right you are, thank you. Joris also helped me figure this one out today. Good thing to use `CheckScalarUnary`. :+1: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org