Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 7679:cae50e4ba467 | 7680:25a03f1a8159 |
|---|---|
| 2013 ae(filt(None, {a: []}, ('+',a)), ['3','4']) | 2013 ae(filt(None, {a: []}, ('+',a)), ['3','4']) |
| 2014 ae(filt(None, {a: '-1'}, ('+',a)), ['3','4']) | 2014 ae(filt(None, {a: '-1'}, ('+',a)), ['3','4']) |
| 2015 ae(filt(None, {a: ['1','-1']}), ['1','3','4']) | 2015 ae(filt(None, {a: ['1','-1']}), ['1','3','4']) |
| 2016 ae(filt(None, {a: ['1','-1']}, ('+',a)), ['3','4','1']) | 2016 ae(filt(None, {a: ['1','-1']}, ('+',a)), ['3','4','1']) |
| 2017 ae(filt(None, {a: ['2','-1']}, ('+',a)), ['3','4','2']) | 2017 ae(filt(None, {a: ['2','-1']}, ('+',a)), ['3','4','2']) |
| 2018 ae(filt(None, {a: ['2','-1','-4']}, ('+',a)), ['3','4','2']) | |
| 2019 ae(filt(None, {a: ['2','-1','-4','-2']}, ('+',a)), ['1']) | |
| 2018 ae(filt(None, {a: ['1','-2']}), ['2','3','4']) | 2020 ae(filt(None, {a: ['1','-2']}), ['2','3','4']) |
| 2019 ae(filt(None, {a: ['1','-2']}, ('+',a)), ['3','4','2']) | 2021 ae(filt(None, {a: ['1','-2']}, ('+',a)), ['3','4','2']) |
| 2020 ae(filt(None, {a: ['-1','-2']}, ('+',a)), ['1','2']) | 2022 ae(filt(None, {a: ['-1','-2']}, ('+',a)), ['1','2']) |
| 2021 ae(filt(None, {a: ['1','2','-3']}, ('+',a)), []) | 2023 ae(filt(None, {a: ['1','2','-3']}, ('+',a)), []) |
| 2022 ae(filt(None, {a: ['1','2','-4']}, ('+',a)), ['1','2']) | 2024 ae(filt(None, {a: ['1','2','-4']}, ('+',a)), ['1','2']) |
