From 49566a5b0ce85f5caf6141c30c6bb8a9ee969bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 23 Feb 2022 20:17:07 +0000 Subject: [PATCH] dfilter: Add more tests Add more tests and fix a copy paste error with the test name. --- test/suite_dfilter/group_syntax.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py index 436f78d46b..171cd330a5 100644 --- a/test/suite_dfilter/group_syntax.py +++ b/test/suite_dfilter/group_syntax.py @@ -120,6 +120,18 @@ class case_syntax(unittest.TestCase): class case_equality(unittest.TestCase): trace_file = "sip.pcapng" - def test_charconst_lhs(self, checkDFilterCount): + def test_all_eq_1(self, checkDFilterCount): dfilter = "udp.port === 5060" checkDFilterCount(dfilter, 2) + + def test_any_ne_1(self, checkDFilterCount): + dfilter = "udp.port !== 5060" + checkDFilterCount(dfilter, 4) + + def test_any_eq_1(self, checkDFilterCount): + dfilter = "udp.port == 5060" + checkDFilterCount(dfilter, 5) + + def test_all_ne_1(self, checkDFilterCount): + dfilter = "udp.port != 5060" + checkDFilterCount(dfilter, 1)