new test case

This commit is contained in:
Martin Brodbeck 2018-07-11 08:33:16 +02:00
parent eeae4fe609
commit 8d58da4618

View file

@ -2,6 +2,8 @@
#include "../src/core/seller.h"
#include <array>
#include <boost/test/included/unit_test.hpp>
//using namespace boost::unit_test;
@ -15,4 +17,13 @@ BOOST_AUTO_TEST_CASE(create_uuid) {
Seller seller{};
seller.createUuid();
BOOST_TEST(seller.getUuid().is_nil() == false);
}
BOOST_AUTO_TEST_CASE(create_many) {
constexpr unsigned int QUANTITY{10000};
std::array<Seller, QUANTITY> sellers;
for (unsigned i = 0; i < sellers.size(); i++) {
sellers[i] = Seller();
sellers[i].createUuid();
}
}