Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk committed Sep 10, 2023
1 parent c7672af commit d2d3b39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/video_processor/steps/test_objecttype.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@
(o.type & (~((o.a | True) & True)), set()),
(arr(o.type) | (~((o.a & False) | cast(False, 'int'))), set()),
(arr(o.type == 'car'), set()),
(F.contained(o.type == 'car', 'intersection'), {'car'}),
(o, set()),
(camera, set()),
# General
('car' == o.type, {'car'}),
(lit('car') == o.type, {'car'}),
((o.type == 'car') == (o1.type == 'car'), {'car'}),
((o.type == 'car') + (o1.type == 'car'), {'car'}),
])
def test_predicates(fn, types):
_types = FindType()(fn)
Expand Down

0 comments on commit d2d3b39

Please sign in to comment.