mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
merging upstream
This commit is contained in:
@@ -690,11 +690,14 @@ def test_string_values_special_characters():
|
||||
features:
|
||||
- or:
|
||||
- string: "hello\\r\\nworld"
|
||||
- string: "bye\\nbye"
|
||||
description: "test description"
|
||||
"""
|
||||
)
|
||||
r = capa.rules.Rule.from_yaml(rule)
|
||||
children = list(r.statement.get_children())
|
||||
assert (String("hello\r\nworld") in children) == True
|
||||
assert (String("bye\nbye") in children) == True
|
||||
|
||||
|
||||
def test_regex_values_always_string():
|
||||
|
||||
Reference in New Issue
Block a user