From fc255cf114d2147adab73fb75ca6960fccb89c24 Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Wed, 23 Oct 2024 15:39:43 +0300 Subject: [PATCH] increase parse_into coverage --- test/parse_into.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/parse_into.cpp b/test/parse_into.cpp index 58999db9..404c9d9e 100644 --- a/test/parse_into.cpp +++ b/test/parse_into.cpp @@ -412,6 +412,7 @@ public: testParseInto( E::z ); testParseIntoErrors< E >( error::not_string, (int)(E::y) ); + testParseIntoErrors< E >( error::unknown_name, "zoom" ); #endif // BOOST_DESCRIBE_CXX14 } @@ -458,6 +459,9 @@ public: #ifndef BOOST_NO_CXX17_HDR_OPTIONAL testParseInto< std::optional >( std::nullopt ); testParseInto< std::optional >( 1 ); + testParseInto< std::optional >( ULONG_MAX ); + testParseInto< std::optional >( true ); + testParseInto< std::optional >( 33.77 ); testParseInto< std::optional> >( std::nullopt ); @@ -469,6 +473,9 @@ public: testParseInto< std::optional> >( std::vector{"1", "2", "3"} ); + testParseInto< std::optional< std::map > >( + std::map{ {"1", 1}, {"2", 2}, {"3", 3} } ); + testParseInto< std::vector< std::optional > >( {1, 2, 3, std::nullopt, 5, std::nullopt, std::nullopt, 8}); #endif