From fca5010435d61f219df83c48917270dbcb8ad902 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 16 May 2024 02:10:53 +0300 Subject: [PATCH] Add default construction tests to test_uuid --- test/test_uuid.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_uuid.cpp b/test/test_uuid.cpp index 7de3b620..603b51b9 100644 --- a/test/test_uuid.cpp +++ b/test/test_uuid.cpp @@ -331,5 +331,16 @@ int main() BOOST_TEST_EQ(std::is_standard_layout::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(); }