1
0
Fork 0

close the loop and compare to original string

This commit is contained in:
Kevin Matz 2021-08-22 15:51:24 -04:00
parent 7a0a8765a6
commit 9d5c985254
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}