From d2d3b39de05ac28c50f1aa5bef2715d5b1ae904c Mon Sep 17 00:00:00 2001 From: "Chanwut (Mick) Kittivorawong" Date: Sun, 10 Sep 2023 12:06:40 -0700 Subject: [PATCH] update test --- tests/video_processor/steps/test_objecttype.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/video_processor/steps/test_objecttype.py b/tests/video_processor/steps/test_objecttype.py index 235f86a..5e6cbef 100644 --- a/tests/video_processor/steps/test_objecttype.py +++ b/tests/video_processor/steps/test_objecttype.py @@ -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)