aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/suite_dfilter/group_syntax.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index e669e25415..13cf2e2c95 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -264,6 +264,11 @@ class case_arithmetic(unittest.TestCase):
dfilter = "1 + 2 == 2 + 1"
checkDFilterFail(dfilter, error)
+ def test_add_6(self, checkDFilterFail):
+ error = 'Constant expression is invalid'
+ dfilter = "1 - 2"
+ checkDFilterFail(dfilter, error)
+
def test_sub_1(self, checkDFilterCount):
dfilter = "udp.srcport == udp.dstport - 1"
checkDFilterCount(dfilter, 2)