Mercurial > p > roundup > code
diff test/db_test_base.py @ 6410:66ccddb034f2
Bug-fix in expression parser
Tried to get minimum of an empty list. Add a test for this.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 12 May 2021 13:32:18 +0200 |
| parents | 9957d8d10783 |
| children | 978820fc88de |
line wrap: on
line diff
--- a/test/db_test_base.py Tue May 11 11:32:26 2021 +0200 +++ b/test/db_test_base.py Wed May 12 13:32:18 2021 +0200 @@ -1852,7 +1852,9 @@ grp = (None, None) for filt in iiter(): ae(filt(None, {'status': '1'}, ('+','id'), grp), ['2','3']) + ae(filt(None, {'status': [], 'status.name': 'unread'}), []) ae(filt(None, {a: '-1'}, ('+','id'), grp), ['3','4']) + ae(filt(None, {a: []}, ('+','id'), grp), ['3','4']) ae(filt(None, {a: None}, ('+','id'), grp), ['3','4']) ae(filt(None, {a: [None]}, ('+','id'), grp), ['3','4']) ae(filt(None, {a: ['-1', None]}, ('+','id'), grp), ['3','4'])
