diff options
author | 2011-02-03 17:38:32 -0800 | |
---|---|---|
committer | 2011-02-03 17:38:32 -0800 | |
commit | 644eb3fe5455c12bd1f831812bb17ae582acb3bc (patch) | |
tree | 9e854af8b373ab1492590abfedf504c9df4f0c59 /pym/portage/tests | |
parent | REQUIRED_USE: display unsatisfied part (diff) | |
download | portage-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.py | 32 |
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: |