summaryrefslogtreecommitdiff
path: root/tests/Ktext
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-09-22 05:59:08 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2017-09-22 07:02:05 +0200
commit8f81cbdcc1d35eeb419c96968d4eedbfeee42e55 (patch)
treea0cf13795808eff611383295ddf66ac3e3ca91c4 /tests/Ktext
parent2de42031515a88d9847889e2d742b7066e33c26e (diff)
Simplify _expr_to_str()
- Get rid of _sym_str_string(), which was only used here. - Remove 'if expr is None' case that could never trigger - Add a test for printing string symbols, as they are a bit tricky: Default values should not be evaluated to tristate values.
Diffstat (limited to 'tests/Ktext')
-rw-r--r--tests/Ktext10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/Ktext b/tests/Ktext
index 958ee18..599cd36 100644
--- a/tests/Ktext
+++ b/tests/Ktext
@@ -15,6 +15,16 @@ config ADVANCED
config ADVANCED
tristate "advanced prompt 2"
+config STRING
+ string
+ default "foo"
+ default "bar" if BAR
+ default STRING2 if BAZ
+
+config STRING2
+ string
+ default "baz"
+
endif
config SELECTED_1