~singpolyma/biboumi

ref: fdb3e739b0f1969e83250d98bda27b938a207f81 biboumi/tests/uuid.cpp -rw-r--r-- 314 bytes
fdb3e739 — louiz’ Typos: negociat… -> negotiat… 1 year, 8 months ago
                                                                                
3c1889fb Florent Le Coz
1
2
3
4
5
6
7
8
9
10
11
12
13
#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);
}