Files
biboumi/tests/uuid.cpp
T
Florent Le Coz 3c1889fbd0 Use Catch for our test suite
`make check` is also added to compile and run the tests
Catch is fetched with cmake automatically into the build directory when needed
2015-10-29 02:32:57 +01:00

14 lines
314 B
C++

#include "catch.hpp"
#include <xmpp/xmpp_component.hpp>
TEST_CASE("id generation")
{
const std::string first_uuid = XmppComponent::next_id();
const std::string second_uuid = XmppComponent::next_id();
CHECK(first_uuid.size() == 36);
CHECK(second_uuid.size() == 36);
CHECK(first_uuid != second_uuid);
}