From baf46327d1e0331a3cee030884ba9b25e54f6a49 Mon Sep 17 00:00:00 2001 From: Ralf Schlatterbeck Date: Wed, 25 Oct 2023 10:56:04 +0200 Subject: [PATCH] Add two small tests for link expressions This tests 'or' of querying a Link property and the negation of the 'or'. I added these when I wasn't sure it did the correct thing (it does). --- test/db_test_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/db_test_base.py b/test/db_test_base.py index 29534deb..1fec2229 100644 --- a/test/db_test_base.py +++ b/test/db_test_base.py @@ -2015,6 +2015,8 @@ def testFilteringLinkExpression(self): ae(filt(None, {a: ['1','-1']}), ['1','3','4']) ae(filt(None, {a: ['1','-1']}, ('+',a)), ['3','4','1']) ae(filt(None, {a: ['2','-1']}, ('+',a)), ['3','4','2']) + ae(filt(None, {a: ['2','-1','-4']}, ('+',a)), ['3','4','2']) + ae(filt(None, {a: ['2','-1','-4','-2']}, ('+',a)), ['1']) ae(filt(None, {a: ['1','-2']}), ['2','3','4']) ae(filt(None, {a: ['1','-2']}, ('+',a)), ['3','4','2']) ae(filt(None, {a: ['-1','-2']}, ('+',a)), ['1','2'])