diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/core/common/VariantReaderTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/core/common/VariantReaderTest.cpp b/test/core/common/VariantReaderTest.cpp index 9a9b694..cfdb1a0 100644 --- a/test/core/common/VariantReaderTest.cpp +++ b/test/core/common/VariantReaderTest.cpp @@ -610,6 +610,13 @@ TEST(VariantReader, parseGenericToken) ASSERT_EQ("hello world", res.second.asString()); } + // String with whitespaces at the beginning. + { + CharReader reader(" \' test\'"); + auto res = VariantReader::parseGenericToken(reader, logger, {';'}, true); + ASSERT_EQ(" test", res.second); + } + // Integer { CharReader reader("1234"); |