new test case
This commit is contained in:
parent
eeae4fe609
commit
8d58da4618
1 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "../src/core/seller.h"
|
#include "../src/core/seller.h"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
|
||||||
#include <boost/test/included/unit_test.hpp>
|
#include <boost/test/included/unit_test.hpp>
|
||||||
|
|
||||||
//using namespace boost::unit_test;
|
//using namespace boost::unit_test;
|
||||||
|
@ -16,3 +18,12 @@ BOOST_AUTO_TEST_CASE(create_uuid) {
|
||||||
seller.createUuid();
|
seller.createUuid();
|
||||||
BOOST_TEST(seller.getUuid().is_nil() == false);
|
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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue