summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-03 06:40:40 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-03 06:43:12 +0100
commitde2e7f766f247d4e8701dcca9fc921f1d0230463 (patch)
tree57f649164fd91b324af34299b080b72d1ecf7d20 /tests
parentd1ea825a1d9d8bfc9496926b6a800ad58581b09a (diff)
Test Choice.assignable, fix for optional choices
Could never return 0 as a valid assignable value previously.
Diffstat (limited to 'tests')
-rw-r--r--tests/Kassignable26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Kassignable b/tests/Kassignable
index fe88abe..f134a74 100644
--- a/tests/Kassignable
+++ b/tests/Kassignable
@@ -201,3 +201,29 @@ config MY_CHOICE_N_VIS_TRISTATE
tristate "m/y-mode choice tristate invisible" if n
endchoice
+
+
+# Choices with some other possible modes
+
+choice NMY_CHOICE
+ tristate "n/m/y-mode choice"
+ optional
+endchoice
+
+choice NY_CHOICE
+ bool "n/y-mode choice"
+ optional
+endchoice
+
+choice NM_CHOICE
+ tristate "n/m-mode choice" if m
+ optional
+endchoice
+
+choice M_CHOICE
+ tristate "m-mode choice" if m
+endchoice
+
+choice N_CHOICE
+ tristate "n-mode choice" if n
+endchoice