[Forensics-changes] [yara] 144/160: More test cases for regular expressions

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:29:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.4.0
in repository yara.

commit 9802ee6798f9e03fc37ef51527135392de625c76
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Jun 4 10:29:42 2015 +0200

    More test cases for regular expressions
---
 yara-python/tests.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/yara-python/tests.py b/yara-python/tests.py
index d474355..2af2b81 100644
--- a/yara-python/tests.py
+++ b/yara-python/tests.py
@@ -126,7 +126,10 @@ RE_TESTS = [
   ('ab{,3}c', 'abbbc', SUCCEED, 'abbbc'),
   ('ab{,2}c', 'abbbc', FAIL),
   ('ab{4,5}bc', 'abbbbc', FAIL),
+  ('ab{2,3}?', 'abbbbb', SUCCEED, 'abb'),
   ('ab{.*}', 'ab{c}', SUCCEED, 'ab{c}'),
+  ('.(aa){1,2}', 'aaaaaaaaaa', SUCCEED, 'aaaaa'),
+  ('a.(bc.){2}', 'aabcabca', SUCCEED, 'aabcabca'),
   ('(ab{1,2}c){1,3}', 'abbcabc', SUCCEED, 'abbcabc'),
   ('ab(c|cc){1,3}d', 'abccccccd', SUCCEED, 'abccccccd'),
   ('a[bx]c', 'abc', SUCCEED, 'abc'),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list