diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-03 21:42:18 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-03 21:42:18 -0800 |
commit | 39fe4fcfebab8ce9406165bac511302f01a8ca0e (patch) | |
tree | f8067e8dff31cf44fa55b4fc7792d092beb09a91 /pym/portage/tests/dep | |
parent | 52f6b55d51e2accaa446bc5d6920421959289baa (diff) | |
download | portage-39fe4fcfebab8ce9406165bac511302f01a8ca0e.tar.gz portage-39fe4fcfebab8ce9406165bac511302f01a8ca0e.tar.bz2 portage-39fe4fcfebab8ce9406165bac511302f01a8ca0e.zip |
REQUIRED_USE: fix parens display and test more
Diffstat (limited to 'pym/portage/tests/dep')
-rw-r--r-- | pym/portage/tests/dep/testCheckRequiredUse.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pym/portage/tests/dep/testCheckRequiredUse.py b/pym/portage/tests/dep/testCheckRequiredUse.py index 0fb97023a..d6a9d0c45 100644 --- a/pym/portage/tests/dep/testCheckRequiredUse.py +++ b/pym/portage/tests/dep/testCheckRequiredUse.py @@ -134,7 +134,7 @@ class TestCheckRequiredUse(TestCase): ( "^^ ( || ( ( a b ) ) ( c ) )", ("a", "b", "c"), - "^^ ( || ( a b ) c )" + "^^ ( ( a b ) c )" ), ( "a? ( ( c e ) ( b d ) )", @@ -147,6 +147,11 @@ class TestCheckRequiredUse(TestCase): "a? ( d )" ), ( + "a? ( ( c e ) ( c e b c d e c ) )", + ("a", "c", "e"), + "a? ( b d )" + ), + ( "^^ ( || ( a b ) ^^ ( b c ) )", ("a", "b"), "^^ ( || ( a b ) ^^ ( b c ) )" @@ -165,6 +170,16 @@ class TestCheckRequiredUse(TestCase): "^^ ( || ( a b ) ^^ ( b c ) )", ["a", "b", "c"], "" + ), + ( + "^^ ( ( a b c ) ( b c d ) )", + ["a", "b", "c"], + "" + ), + ( + "^^ ( ( a b c ) ( b c d ) )", + ["a", "b", "c", "d"], + "^^ ( ( a b c ) ( b c d ) )" ) ) for required_use, use, expected in test_cases: |