From e1ccf19f9f5fc896dfeef15883d2cb455cbbb937 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 29 Oct 2019 16:41:03 +0100 Subject: Add public helpers for generating " (defined at ...)" strings Have Symbol/Choice.name_and_loc return strings like "MY_SYM (defined at foo:1, bar:2)" " (defined at foo:4)" I've added a function like that in at least four different scripts now, so that's probably a sign that it's a worthwhile helper. Clean up the tests/Klocation tests a bit while adding tests. --- tests/Klocation_sourced | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tests/Klocation_sourced') diff --git a/tests/Klocation_sourced b/tests/Klocation_sourced index 6e19f76..2ad8481 100644 --- a/tests/Klocation_sourced +++ b/tests/Klocation_sourced @@ -1,9 +1,17 @@ -config MULTI_DEF +config MANY_DEF -choice CHOICE - bool "choice" +choice CHOICE_ONE_DEF + bool "one-def choice" +endchoice + +choice CHOICE_TWO_DEF + bool "two-def choice 1" +endchoice + +choice CHOICE_TWO_DEF + bool "two-def choice 2" endchoice config MENU_HOOK -- cgit v1.2.3