Add one more test

This commit is contained in:
Håkon Hægland 2022-09-21 15:47:41 +02:00
parent 5086d5d74e
commit 34ea7f3662

View File

@ -52,6 +52,7 @@ BOOST_AUTO_TEST_SUITE ()
BOOST_AUTO_TEST_CASE (copyable)
{
A<B> 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<B> a2 = a1;