Skip to content

Commit 883f27d

Browse files
committed
ARROW-12950: [C++] Add more tests for count_substring
1 parent 8006de6 commit 883f27d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/src/arrow/compute/kernels/scalar_string_test.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ TYPED_TEST(TestBinaryKernels, CountSubstring) {
109109
this->CheckUnary("count_substring", R"(["", null, "abc"])", this->offset_type(),
110110
"[1, null, 4]", &options_empty);
111111

112+
MatchSubstringOptions options_repeated{"aaa"};
113+
this->CheckUnary("count_substring", R"(["", "aaaa", "aaaaa", "aaaaaa", "aaá"])",
114+
this->offset_type(), "[0, 1, 1, 2, 0]", &options_repeated);
115+
112116
// TODO: case-insensitive
113117
}
114118

0 commit comments

Comments
 (0)