From 249bbc9ebb501a35c7ee84e99ecf0b7cfcc23a77 Mon Sep 17 00:00:00 2001 From: Vincent Thiberville Date: Sun, 12 Feb 2023 15:51:55 +0100 Subject: [PATCH] test: add test on widening single regex node --- boreal/tests/it/variables.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/boreal/tests/it/variables.rs b/boreal/tests/it/variables.rs index ab8d87da..b8be906f 100644 --- a/boreal/tests/it/variables.rs +++ b/boreal/tests/it/variables.rs @@ -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);