aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-03 17:38:32 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-03 17:38:32 -0800
commit644eb3fe5455c12bd1f831812bb17ae582acb3bc (patch)
tree9e854af8b373ab1492590abfedf504c9df4f0c59 /pym/portage/tests
parentREQUIRED_USE: display unsatisfied part (diff)
downloadportage-644eb3fe5455c12bd1f831812bb17ae582acb3bc.tar.gz
portage-644eb3fe5455c12bd1f831812bb17ae582acb3bc.tar.bz2
portage-644eb3fe5455c12bd1f831812bb17ae582acb3bc.zip
REQUIRED_USE: fix parens display and test
Diffstat (limited to 'pym/portage/tests')
-rw-r--r--pym/portage/tests/dep/testCheckRequiredUse.py32
1 files changed, 31 insertions, 1 deletions
diff --git a/pym/portage/tests/dep/testCheckRequiredUse.py b/pym/portage/tests/dep/testCheckRequiredUse.py
index 0f7a299e9..0fb97023a 100644
--- a/pym/portage/tests/dep/testCheckRequiredUse.py
+++ b/pym/portage/tests/dep/testCheckRequiredUse.py
@@ -134,7 +134,37 @@ class TestCheckRequiredUse(TestCase):
(
"^^ ( || ( ( a b ) ) ( c ) )",
("a", "b", "c"),
- "^^ ( || ( ( a b ) ) ( c ) )"
+ "^^ ( || ( a b ) c )"
+ ),
+ (
+ "a? ( ( c e ) ( b d ) )",
+ ("a", "c", "e"),
+ "a? ( b d )"
+ ),
+ (
+ "a? ( ( c e ) ( b d ) )",
+ ("a", "b", "c", "e"),
+ "a? ( d )"
+ ),
+ (
+ "^^ ( || ( a b ) ^^ ( b c ) )",
+ ("a", "b"),
+ "^^ ( || ( a b ) ^^ ( b c ) )"
+ ),
+ (
+ "^^ ( || ( a b ) ^^ ( b c ) )",
+ ["a", "c"],
+ "^^ ( || ( a b ) ^^ ( b c ) )"
+ ),
+ (
+ "^^ ( || ( a b ) ^^ ( b c ) )",
+ ["b", "c"],
+ ""
+ ),
+ (
+ "^^ ( || ( a b ) ^^ ( b c ) )",
+ ["a", "b", "c"],
+ ""
)
)
for required_use, use, expected in test_cases: