Skip to content

Commit

Permalink
tests: add test case that makes sure that empty strings are matched b…
Browse files Browse the repository at this point in the history
…y regexps
  • Loading branch information
plusvic committed Mar 21, 2024
1 parent 9ac238f commit d5a5430
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ fn string_operations() {
condition_true!(r#""foo\nbar" matches /foo.*bar/s"#);
condition_false!(r#""foo\nbar" matches /foo.*bar/"#);
condition_true!(r#""foobar" matches /fo{,2}bar/"#);
condition_true!(r#""" matches /a|b|/"#);
condition_true!(r#""タイトル" matches /タイトル/"#);
condition_true!(r#""\xF7\xFF" matches /\xF7\xFF/"#);
condition_true!(r#""\xe2\x28\xa1" matches /\xe2\x28\xa1/"#);
Expand Down

0 comments on commit d5a5430

Please sign in to comment.