Skip to content

Commit

Permalink
Add default construction tests to test_uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed May 15, 2024
1 parent a85c3cb commit fca5010
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,16 @@ int main()
BOOST_TEST_EQ(std::is_standard_layout<uuid>::value, true);
}

{
// test default constructor

uuid u1;
uuid u2 = {};

BOOST_TEST( u1.is_nil() );
BOOST_TEST( u2.is_nil() );
BOOST_TEST_EQ( u1, u2 );
}

return boost::report_errors();
}

0 comments on commit fca5010

Please sign in to comment.