Skip to content

Commit

Permalink
refs #27 Более показательные условия для проверок
Browse files Browse the repository at this point in the history
  • Loading branch information
izvolov committed Nov 14, 2019
1 parent a5ba235 commit 404031e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/burst/container/dynamic_tuple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ TEST_SUITE("dynamic_tuple")

TEST_CASE("ДК может содержать в себе ДК")
{
burst::dynamic_tuple t(burst::dynamic_tuple{}, burst::dynamic_tuple{});
burst::dynamic_tuple t(burst::dynamic_tuple{1, 2}, burst::dynamic_tuple{3, 4});
CHECK(t.size() == 2);
}

Expand Down Expand Up @@ -516,11 +516,11 @@ TEST_SUITE("dynamic_tuple")
{
REQUIRE(dummy::instances_count == 0);
{
burst::dynamic_tuple t(dummy{}, std::make_unique<int>(17));
REQUIRE(dummy::instances_count == 1);
burst::dynamic_tuple t(dummy{}, std::make_unique<int>(17), dummy{});
REQUIRE(dummy::instances_count == 2);

REQUIRE_THROWS_AS(burst::dynamic_tuple copy(t), std::runtime_error);
CHECK(dummy::instances_count == 1);
CHECK(dummy::instances_count == 2);
}
CHECK(dummy::instances_count == 0);
}
Expand Down

0 comments on commit 404031e

Please sign in to comment.