Skip to content

Commit

Permalink
Add two small tests for link expressions
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
schlatterbeck committed Oct 25, 2023
1 parent 9ffa1d0 commit baf4632
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/db_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit baf4632

Please sign in to comment.