[Forensics-changes] [yara] 184/415: Add some tests for Aho-Corasick algorithm
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:03 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit 024469c9d185482a05ba876555deabc00555fed0
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Wed Jun 26 15:03:24 2013 +0000
Add some tests for Aho-Corasick algorithm
---
yara-python/tests.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/yara-python/tests.py b/yara-python/tests.py
index 0159859..0094289 100644
--- a/yara-python/tests.py
+++ b/yara-python/tests.py
@@ -121,6 +121,17 @@ class TestYara(unittest.TestCase):
'rule test { strings: $a = "abc" fullword condition: $a }',
], "---- abc ---- A\x00B\x00C\x00 ---- xyz")
+ self.assertTrueRules([
+ 'rule test {\
+ strings:\
+ $a = "abcdef"\
+ $b = "cdef"\
+ $c = "ef"\
+ condition:\
+ all of them\
+ }'
+ ], 'abcdef')
+
def testWildcardStrings(self):
self.assertTrueRules([
--
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