beautify code

This commit is contained in:
Martin Brodbeck 2018-07-11 08:34:23 +02:00
parent 0f3e7ba799
commit 779f085cca

View file

@ -6,20 +6,23 @@
#include <boost/test/included/unit_test.hpp> #include <boost/test/included/unit_test.hpp>
//using namespace boost::unit_test; // using namespace boost::unit_test;
BOOST_AUTO_TEST_CASE( create_uuid_nil ) { BOOST_AUTO_TEST_CASE(create_uuid_nil)
{
Seller seller{}; Seller seller{};
BOOST_TEST(seller.getUuid().is_nil() == true); BOOST_TEST(seller.getUuid().is_nil() == true);
} }
BOOST_AUTO_TEST_CASE(create_uuid) { BOOST_AUTO_TEST_CASE(create_uuid)
{
Seller seller{}; Seller seller{};
seller.createUuid(); seller.createUuid();
BOOST_TEST(seller.getUuid().is_nil() == false); BOOST_TEST(seller.getUuid().is_nil() == false);
} }
BOOST_AUTO_TEST_CASE(create_many) { BOOST_AUTO_TEST_CASE(create_many)
{
constexpr unsigned int QUANTITY{10000}; constexpr unsigned int QUANTITY{10000};
std::array<Seller, QUANTITY> sellers; std::array<Seller, QUANTITY> sellers;
for (unsigned i = 0; i < sellers.size(); i++) { for (unsigned i = 0; i < sellers.size(); i++) {