Pārlūkot izejas kodu

Test for self-move removed as this is prevented by some compilers.

main
offa pirms 7 gadiem
vecāks
revīzija
ea843c33c9
1 mainītis faili ar 0 papildinājumiem un 8 dzēšanām
  1. +0
    -8
      test/UniqueResourceTest.cpp

+ 0
- 8
test/UniqueResourceTest.cpp Parādīt failu

@@ -173,14 +173,6 @@ TEST_CASE("move-construction with copy", "[UniqueResource]")
CHECK(guard.get() == 3);
}

TEST_CASE("move assignment has no effect if same object", "[UniqueResource]")
{
REQUIRE_CALL(m, deleter(3));
auto guard = sr::make_unique_resource(Handle{3}, deleter);
guard = std::move(guard);
REQUIRE(guard.get() == 3);
}

TEST_CASE("move assignment calls deleter", "[UniqueResource]")
{
auto moveFrom = sr::make_unique_resource(Handle{3}, deleter);

Notiek ielāde…
Atcelt
Saglabāt