Skip to content

Commit

Permalink
Add more test cases for regex_like
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Nov 8, 2024
1 parent 24d5f26 commit 6a7c624
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arrow-string/src/predicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,16 @@ mod tests {
(r"foo_bar", r"^foo.bar$"),
// escaped wildcards
(r"\%\_", r"^%_$"),
// escaped non-wildcard
(r"\a", r"^a$"),
// escaped escape and wildcard
(r"\\%", r"^\\"),
// escaped escape and non-wildcard
(r"\\a", r"^\\a$"),
// regex meta character
(r".", r"^\.$"),
(r"$", r"^\$$"),
(r"\\", r"^\\$"),
];

for (like_pattern, expected_regexp) in test_cases {
Expand Down

0 comments on commit 6a7c624

Please sign in to comment.