Mercurial > p > roundup > code
diff test/db_test_base.py @ 7680:25a03f1a8159
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).
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 25 Oct 2023 10:56:04 +0200 |
| parents | 5b41018617f2 |
| children | 2184033114a0 |
line wrap: on
line diff
--- a/test/db_test_base.py Tue Oct 24 22:03:55 2023 -0400 +++ b/test/db_test_base.py Wed Oct 25 10:56:04 2023 +0200 @@ -2015,6 +2015,8 @@ 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'])
