summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-05-24 12:14:31 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-05-24 13:08:12 +0200
commite81a77bdb0687b62f91d7dc4d5b84b443808c0a7 (patch)
tree339fa0fbd78cafed7e92b230a8931e3ab7a666ee /testsuite.py
parente806f26a075ba52eca01567c7be7f0b4eba91df5 (diff)
Consistently put direct deps. last when propagating
Preparation for some later additions. Previously, the 'visible if' deps appeared to the right of the 'depends on' deps. Now, the direct deps always appear last. With this change, the prompt tuple is only updated once for any given menu node too, which should be a tiny bit faster.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index 175d278..c1690d3 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -554,6 +554,11 @@ config ADVANCED
depends on (A || !B || (C && D) || !(E && F) || G = H || (I && !J && (K || L) && !(M || N) && O = P)) && DEP4 && DEP3
help
second help text
+
+config ADVANCED
+ tristate
+ prompt "prompt 4" if VIS && DEP4 && DEP3
+ depends on DEP4 && DEP3
""")
verify_custom_str(c.syms["ADVANCED"], """
@@ -582,6 +587,11 @@ config ADVANCED
depends on ([A] || ![B] || ([C] && [D]) || !([E] && [F]) || [G] = [H] || ([I] && ![J] && ([K] || [L]) && !([M] || [N]) && [O] = [P])) && [DEP4] && [DEP3]
help
second help text
+
+config ADVANCED
+ tristate
+ prompt "prompt 4" if [VIS] && [DEP4] && [DEP3]
+ depends on [DEP4] && [DEP3]
""")