From: Martin Vidner Date: Mon, 14 Oct 2019 12:54:08 +0000 (+0200) Subject: Test values with a comment character X-Git-Tag: v0.8.5^2~9 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=cf676c85760a13fd584ca89145aabdec60f22d26;p=thirdparty%2Fsnapper.git Test values with a comment character --- diff --git a/testsuite/sysconfig-get1.cc b/testsuite/sysconfig-get1.cc index d0eaa457..f370f2b6 100644 --- a/testsuite/sysconfig-get1.cc +++ b/testsuite/sysconfig-get1.cc @@ -42,4 +42,7 @@ BOOST_AUTO_TEST_CASE(sysconfig_get1) BOOST_CHECK_EQUAL(boost::join(tmp_vector, "-"), "c:\\io.sys"); BOOST_CHECK(!s.getValue("V5", tmp_vector)); + + BOOST_CHECK(s.getValue("V6", tmp_vector)); + BOOST_CHECK_EQUAL(boost::join(tmp_vector, "-"), "a-value-with-a-#-hash"); } diff --git a/testsuite/sysconfig-get1.txt b/testsuite/sysconfig-get1.txt index f2970e09..1bd059ef 100644 --- a/testsuite/sysconfig-get1.txt +++ b/testsuite/sysconfig-get1.txt @@ -12,3 +12,4 @@ V3=" now three words " V4="c:\\io.sys" V5="error\" +V6="a value with a # hash"