code cleanup

This commit is contained in:
Martin Brodbeck 2018-07-20 11:52:26 +02:00
parent 74719b762f
commit 6000bb3ef2
17 changed files with 65 additions and 67 deletions

View file

@ -15,7 +15,7 @@ BOOST_AUTO_TEST_CASE(check_is_sold)
Article article{};
BOOST_TEST(article.isSold() == false);
auto salePtr = std::make_shared<Sale>();
article.setSale(salePtr.get());
auto salePtr = std::make_unique<Sale>();
salePtr->addArticle(&article);
BOOST_TEST(article.isSold() == true);
}