From 34ea7f3662b50016d4845966df8b8a7de0b23f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Wed, 21 Sep 2022 15:47:41 +0200 Subject: [PATCH] Add one more test --- tests/test_CopyablePtr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_CopyablePtr.cpp b/tests/test_CopyablePtr.cpp index c92a4b0b5..733d0a3e2 100644 --- a/tests/test_CopyablePtr.cpp +++ b/tests/test_CopyablePtr.cpp @@ -52,6 +52,7 @@ BOOST_AUTO_TEST_SUITE () BOOST_AUTO_TEST_CASE (copyable) { A a1 {}; + BOOST_CHECK_MESSAGE(!a1.get_aptr(), "Boolean context operator works. Initialization with nullptr works"); a1.assign(B{1.1,2}); BOOST_CHECK_MESSAGE(a1.get_aptr().get()->a == 1.1, "Able to assign new value to pointer"); A a2 = a1;