From 6e444f548b88313609c655df14bb1c72c3e98dc8 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 13 Dec 2012 13:42:59 +0100 Subject: Verify assignability of string/int/hex with m visibility. --- tests/Kvisibility | 16 ++++++++++++++++ testsuite.py | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/tests/Kvisibility b/tests/Kvisibility index 5521863..11e15ad 100644 --- a/tests/Kvisibility +++ b/tests/Kvisibility @@ -259,3 +259,19 @@ comment "double-nested m comment" depends on y endmenu endif + +# Used to verify that string/int/hex symbols with m visibility accept a user +# value + +if m + +config STRING_m + string "string" + +config INT_m + int "int" + +config HEX_m + hex "hex" + +endif diff --git a/testsuite.py b/testsuite.py index 1824ecb..1882252 100644 --- a/testsuite.py +++ b/testsuite.py @@ -562,6 +562,12 @@ def run_selftests(): verify_comment_visibility(comment_if_y, "y", "y") verify_comment_visibility(comment_m_nested, "n", "m") + # Verify that string/int/hex symbols with m visibility accept a user value + + assign_and_verify_new_value("STRING_m", "foo bar", "foo bar") + assign_and_verify_new_value("INT_m", "123", "123") + assign_and_verify_new_value("HEX_m", "0x123", "0x123") + # # Object relations # -- cgit v1.2.3