close the loop and compare to original string
This commit is contained in:
parent
7a0a8765a6
commit
9d5c985254
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
test.cpp
|
||||
test_uuid.cpp
|
||||
|
||||
Copyright (c) 2021 Kevin Matz (kevin.matz@gmail.com)
|
||||
|
||||
|
@ -30,10 +30,12 @@
|
|||
|
||||
TEST(UUID, ver4fromString)
|
||||
{
|
||||
auto str = std::string("c2ffda84-0743-4d3f-8299-e2ba3a09e16c");
|
||||
// from online generator
|
||||
auto str = std::string("{c2ffda84-0743-4d3f-8299-e2ba3a09e16c}");
|
||||
auto uuid = UUID::uuid(str);
|
||||
|
||||
ASSERT_EQ(uuid.type(), UUID::RFC4122);
|
||||
ASSERT_EQ(uuid.version(), 4);
|
||||
ASSERT_EQ(uuid.string(), str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue