diff --git a/qa/unittests/common/test_markup_parser.cpp b/qa/unittests/common/test_markup_parser.cpp index 8064b519af..b308b4d31a 100644 --- a/qa/unittests/common/test_markup_parser.cpp +++ b/qa/unittests/common/test_markup_parser.cpp @@ -91,6 +91,17 @@ BOOST_AUTO_TEST_CASE( Parse ) "A string ~{overbar}", " { {'A string '} {OVER {'overbar'} } } " }, + { + "A string ~{incomplete markup", + " { {'A string ~{incomplete markup'} } " + }, + { + "A string ~{overbar} ~{incomplete markup", + " { {'A string '} {OVER {'overbar'} } {' ~{incomplete markup'} } " + }, + { "A string ~{incomplete markup ~{overbar}", + " { {'A string ~{incomplete markup '} {OVER {'overbar'} } } " + } }; for( auto& c : cases )