Skip to content

Commit 650ad06

Browse files
committed
tests: add test cases for better coverage of xor pattern modifier.
1 parent ae25fe1 commit 650ad06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/tests/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,9 @@ fn match_length() {
27022702

27032703
#[test]
27042704
fn xor() {
2705+
pattern_true!(r#""mississippi" xor"#, b"mississippi");
27052706
pattern_true!(r#""mississippi" xor"#, b"lhrrhrrhqqh");
2707+
pattern_false!(r#""mississippi" xor"#, b"lhrrhrrhqqq");
27062708
pattern_true!(r#""ssi" xor"#, b"lhrrhrrhqqh");
27072709
pattern_false!(r#""miss" xor fullword"#, b"lhrrhrrhqqh");
27082710
pattern_false!(r#""ppi" xor fullword"#, b"lhrrhrrhqqh");

0 commit comments

Comments
 (0)