7 #include <throwing/unique_ptr.hpp> 9 TEST_CASE(
"unique_ptr to nullptr get returns nullptr",
10 "[unique_ptr][nullptr]") {
11 throwing::unique_ptr<
int> nothing;
12 REQUIRE(nothing.get() ==
nullptr);
15 throwing::unique_ptr<
int> nothing2(
nullptr);
16 REQUIRE(nothing2.get() ==
nullptr);
20 TEST_CASE(
"unique_ptr: operator bool",
"[unique_ptr][bool]") {
21 throwing::unique_ptr<
int> nothing;
24 throwing::unique_ptr<
int> something(
new int);
TEST_CASE("unique_ptr to array reset to convertible", "[unique_ptr][array][reset][conv.qual]")