code cleanup
This commit is contained in:
parent
74719b762f
commit
6000bb3ef2
17 changed files with 65 additions and 67 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue