Skip to content

Commit

Permalink
test: adapt a test to circumvent yara compile checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Jan 28, 2023
1 parent 3e1ba3c commit 1b0d582
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions boreal/tests/it/for_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,19 +402,18 @@ fn test_for_expression_none() {

#[test]
fn test_for_expression_number() {
// FIXME: rejected by libyara now on 4.3
// let checker = Checker::new(&build_rule("-1 of them"));
// checker.check(b"", true);
// checker.check(b"a0", true);
// checker.check(b"a1", true);
// checker.check(b"a2", true);
// checker.check(b"b0", true);
// checker.check(b"b1", true);
// checker.check(b"c0", true);
// checker.check(b"a0b1", true);
// checker.check(b"a0b1c0", true);
// checker.check(b"a0a1a2b0b1", true);
// checker.check(b"a0a1a2b0b1c0", true);
let checker = Checker::new(&build_rule("(#a0-10) of them"));
checker.check(b"", true);
checker.check(b"a0", true);
checker.check(b"a1", true);
checker.check(b"a2", true);
checker.check(b"b0", true);
checker.check(b"b1", true);
checker.check(b"c0", true);
checker.check(b"a0b1", true);
checker.check(b"a0b1c0", true);
checker.check(b"a0a1a2b0b1", true);
checker.check(b"a0a1a2b0b1c0", true);

let checker = Checker::new(&build_rule("0 of them"));
checker.check(b"", true);
Expand Down

0 comments on commit 1b0d582

Please sign in to comment.