From de2e7f766f247d4e8701dcca9fc921f1d0230463 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 3 Nov 2017 06:40:40 +0100 Subject: Test Choice.assignable, fix for optional choices Could never return 0 as a valid assignable value previously. --- tests/Kassignable | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/Kassignable') 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 -- cgit v1.2.3