Skip to content

Commit

Permalink
test: add test on widening single regex node
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Feb 12, 2023
1 parent 6e893b6 commit 249bbc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boreal/tests/it/variables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ fn test_variable_regex_wide() {
checker.check(b"", false);
checker.check(b"\0", true);

let checker = build_checker(".", "wide");
checker.check(b"", false);
checker.check(b"\0", false);
checker.check(b"a", false);
checker.check(b"a\0", true);
checker.check(b"ab", false);

let checker = build_checker("abc", "wide");
checker.check(b"abc", false);
checker.check(b"a\0b\0c\0", true);
Expand Down

0 comments on commit 249bbc9

Please sign in to comment.