Commit d329942f by Martin Heistermann

Add simple test for ptr::make_unique

parent ab6fe51d
Pipeline #3533 failed with stage
in 8 minutes 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);
}
Markdown is supported
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