From b259b179f5ceba60a1d04fef07559c0b01720c31 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Fri, 17 Apr 2020 14:25:21 -0300 Subject: 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. --- testing/test_abdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing') 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 -- cgit 1.4.1