8 #include <throwing/shared_ptr.hpp> 10 TEST_CASE(
"operator<< prints stored ptr",
"[shared_ptr][streams]") {
11 auto ptr = throwing::make_shared<
int>();
12 std::stringstream ss_ptr;
14 std::stringstream ss_tptr;
16 REQUIRE(ss_tptr.str() == ss_ptr.str());
19 TEST_CASE(
"operator<< prints nullptr",
"[shared_ptr][streams]") {
20 throwing::shared_ptr<
int> ptr;
21 std::stringstream ss_ptr;
23 std::stringstream ss_tptr;
25 REQUIRE(ss_tptr.str() == ss_ptr.str());
TEST_CASE("unique_ptr to array reset to convertible", "[unique_ptr][array][reset][conv.qual]")