From e9e6431d7b68e5ceacc41f3b3e1c8d290e55666b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sat, 25 Jun 2022 12:54:16 +0100 Subject: dfilter: Change boolean string representation Use "True" or "TRUE" instead of "true" and remove case insensivity. Same for false. This should serve to differentiate booleans a bit more from protocol names, which should be using lower-case. --- test/suite_dfilter/group_syntax.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py index 1d8d23ce8d..8327ba1d0c 100644 --- a/test/suite_dfilter/group_syntax.py +++ b/test/suite_dfilter/group_syntax.py @@ -112,9 +112,13 @@ class case_syntax(unittest.TestCase): checkDFilterCount(dfilter, 1) def test_bool_2(self, checkDFilterCount): - dfilter = "tcp.flags.push == true" + dfilter = "tcp.flags.push == True" checkDFilterCount(dfilter, 1) + def test_bool_2(self, checkDFilterCount): + dfilter = "tcp.flags.push == FALSE" + checkDFilterCount(dfilter, 0) + @fixtures.uses_fixtures class case_equality(unittest.TestCase): trace_file = "sip.pcapng" -- cgit v1.2.3