summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/portage_dep/test_dep_getcpv.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/portage_dep/test_dep_getcpv.py b/tests/portage_dep/test_dep_getcpv.py
index 6928794a4..90e1b6e56 100644
--- a/tests/portage_dep/test_dep_getcpv.py
+++ b/tests/portage_dep/test_dep_getcpv.py
@@ -14,6 +14,8 @@ class DepGetCPV(TestCase):
prefix_ops = ["<", ">", "=", "~", "!", "<=",
">=", "!=", "!<", "!>", "!~",""]
+
+ bad_prefix_ops = [ ">~", "<~", "~>", "~<" ]
postfix_ops = [ "*", "" ]
cpvs = ["sys-apps/portage"]
@@ -23,3 +25,7 @@ class DepGetCPV(TestCase):
for postfix in postfix_ops:
self.assertEqual( dep_getcpv(
prefix + cpv + postfix ), cpv )
+ for prefix in bad_prefix_ops:
+ for postfix in postfix_ops:
+ self.assertNotEqual( dep_getcpv(
+ prefix + cpv + postfix ), cpv )