From e36b245cfd9a8e0f69530e8143634d75cbae787b Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 13 Feb 2015 20:19:33 +0100 Subject: added a test case which lead to a truly interesting bug that cost us quite some time. --- test/core/common/VariantReaderTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/core/common/VariantReaderTest.cpp') diff --git a/test/core/common/VariantReaderTest.cpp b/test/core/common/VariantReaderTest.cpp index feaf06d..a23af09 100644 --- a/test/core/common/VariantReaderTest.cpp +++ b/test/core/common/VariantReaderTest.cpp @@ -622,6 +622,13 @@ TEST(VariantReader, parseObject) auto res = VariantReader::parseObject(reader, logger); ASSERT_FALSE(res.first); } + + // Mutliple commas + { + CharReader reader("[r=50,,t=70, b=70,g=60]"); + auto res = VariantReader::parseObject(reader, logger); + ASSERT_FALSE(res.first); + } } TEST(VariantReader, parseCardinality) -- cgit v1.2.3