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 bc4a53a commit 053bef3
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 @@ -322,10 +322,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 053bef3

Please sign in to comment.