Additional version_info corner case checks
This commit is contained in:
parent
63e9b6be33
commit
a37276b450
1 changed files with 11 additions and 0 deletions
|
@ -21,6 +21,17 @@ BOOST_AUTO_TEST_SUITE( version )
|
|||
|
||||
BOOST_AUTO_TEST_CASE( test_version_info )
|
||||
{
|
||||
version_info empty;
|
||||
|
||||
BOOST_CHECK( empty == version_info(0, 0, 0) );
|
||||
BOOST_CHECK( empty.str() == "0.0.0" );
|
||||
|
||||
version_info dots1("........");
|
||||
version_info dots2("...hullo");
|
||||
|
||||
BOOST_CHECK( dots1 == empty);
|
||||
BOOST_CHECK( dots2.str() == "0.0.0hullo" );
|
||||
|
||||
version_info canonical("1.2.3");
|
||||
|
||||
BOOST_CHECK( canonical.is_canonical() );
|
||||
|
|
Loading…
Add table
Reference in a new issue