From 8f81cbdcc1d35eeb419c96968d4eedbfeee42e55 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 22 Sep 2017 05:59:08 +0200 Subject: 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. --- tests/Ktext | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/Ktext') 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 -- cgit v1.2.3