123456789101112131415161718192021 |
- #include <catch2/catch_test_macros.hpp>
- #include <mcl/ptrs/uptr.hpp>
- #pragma region constructor
- TEST_CASE("Constructor from cpointer", "[UPtr][smart][unique][pointer][constructor][cpointer][raw]") {
- mcl::ptrs::UPtr<int> uptr( new int(5) );
- REQUIRE( *uptr == 5 );
- }
- TEST_CASE("Forward of type constructor arguments", "[UPtr][smart][unique][pointer][constructor][args]") {
- mcl::ptrs::UPtr<int> ptr(10);
- REQUIRE( *ptr == 10 );
- }
- #pragma endregion
|