diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2020-04-17 14:25:21 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-04-17 14:26:01 -0300 |
commit | b259b179f5ceba60a1d04fef07559c0b01720c31 (patch) | |
tree | a0315c67fddc7919e6d6892e8d1eb15f328057a6 /testing | |
parent | 3f9f66712aaa071bd3bb32c46e1e4dc1fed13378 (diff) |
Fix bugs with empty and predicate-only matches
Also clarified the behaviour of empty matches, which match anything, but only once. This behaviour is required for consistency with the rest of the matching rules.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_abdl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_abdl.py b/testing/test_abdl.py index 65549ed..cbdcd9d 100644 --- a/testing/test_abdl.py +++ b/testing/test_abdl.py @@ -281,7 +281,7 @@ def test_multi_key_predicate(foo, pat): @hypothesis.given(objtree, st.just(abdl.compile(""))) def test_empty(foo, pat): def deep(foo): - yield from () + yield {} assert all(LogAndCompare(pat.match(foo), deep(foo))) # FIXME |