Commit d329942f authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Add simple test for ptr::make_unique

parent ab6fe51d
Pipeline #3533 failed with stage
in 8 minutes and 5 seconds
#include <gtest/gtest.h>
#include <OpenVolumeMesh/System/MemoryInclude.hh>
TEST(MakeUniqueTest, MakeUniqueTest) {
std::unique_ptr<int> foo;
auto bar = ptr::make_unique<int>(5);
foo = std::move(bar);
EXPECT_EQ(*foo, 5);
EXPECT_EQ(bar.get(), nullptr);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment