Skip to content

Commit fc255cf

Browse files
committed
increase parse_into coverage
1 parent 5326a2f commit fc255cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parse_into.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ class parse_into_test
412412
testParseInto<E>( E::z );
413413

414414
testParseIntoErrors< E >( error::not_string, (int)(E::y) );
415+
testParseIntoErrors< E >( error::unknown_name, "zoom" );
415416
#endif // BOOST_DESCRIBE_CXX14
416417
}
417418

@@ -458,6 +459,9 @@ class parse_into_test
458459
#ifndef BOOST_NO_CXX17_HDR_OPTIONAL
459460
testParseInto< std::optional<int> >( std::nullopt );
460461
testParseInto< std::optional<int> >( 1 );
462+
testParseInto< std::optional<std::uint64_t> >( ULONG_MAX );
463+
testParseInto< std::optional<bool> >( true );
464+
testParseInto< std::optional<double> >( 33.77 );
461465

462466
testParseInto< std::optional<std::vector<std::nullptr_t>> >(
463467
std::nullopt );
@@ -469,6 +473,9 @@ class parse_into_test
469473
testParseInto< std::optional<std::vector<std::string>> >(
470474
std::vector<std::string>{"1", "2", "3"} );
471475

476+
testParseInto< std::optional< std::map<std::string, int> > >(
477+
std::map<std::string, int>{ {"1", 1}, {"2", 2}, {"3", 3} } );
478+
472479
testParseInto< std::vector< std::optional<int> > >(
473480
{1, 2, 3, std::nullopt, 5, std::nullopt, std::nullopt, 8});
474481
#endif

0 commit comments

Comments
 (0)