diff options
author | João Valverde <j@v6e.pt> | 2022-02-23 20:17:07 +0000 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-02-24 21:41:32 +0000 |
commit | 49566a5b0ce85f5caf6141c30c6bb8a9ee969bb3 (patch) | |
tree | 4be344330e2c07e1fc7895c592d642573251f4c4 /test | |
parent | 90c0862a93d4400b4856b4ad536840d3548fdad6 (diff) |
dfilter: Add more tests
Add more tests and fix a copy paste error with the test name.
Diffstat (limited to 'test')
-rw-r--r-- | test/suite_dfilter/group_syntax.py | 14 |
1 files changed, 13 insertions, 1 deletions
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) |