diff options
Diffstat (limited to 'test/core/common/VariantReaderTest.cpp')
-rw-r--r-- | test/core/common/VariantReaderTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/core/common/VariantReaderTest.cpp b/test/core/common/VariantReaderTest.cpp index 14442e9..7e49352 100644 --- a/test/core/common/VariantReaderTest.cpp +++ b/test/core/common/VariantReaderTest.cpp @@ -863,6 +863,14 @@ TEST(VariantReader, parseGenericToken) TEST(VariantReader, parseGeneric) { + // Simple case, int. + { + CharReader reader("0"); + auto res = VariantReader::parseGeneric(reader, logger, {';'}); + ASSERT_TRUE(res.first); + ASSERT_TRUE(res.second.isInt()); + ASSERT_EQ(0, res.second.asInt()); + } // Simple case, unescaped string { CharReader reader("hello"); |