THRIFT-5773 Strong UUID wrapper for C++
Client: cpp/CMakeLists.txt
Patch: Carel Combrink
This closes #2958
diff --git a/lib/cpp/test/ToStringTest.cpp b/lib/cpp/test/ToStringTest.cpp
index 68c82ad..cb792df 100644
--- a/lib/cpp/test/ToStringTest.cpp
+++ b/lib/cpp/test/ToStringTest.cpp
@@ -162,11 +162,11 @@
BOOST_AUTO_TEST_CASE(generated_uuid_to_string) {
thrift::test::CrazyNesting l;
- l.uuid_field = "{4b686716-5f20-4deb-8ce0-9eaf379e8a3d}";
+ l.uuid_field = apache::thrift::TUuid{"{4b686716-5f20-4deb-8ce0-9eaf379e8a3d}"};
BOOST_CHECK_EQUAL(to_string(l),
"CrazyNesting(string_field=, set_field=<null>, list_field=[], binary_field=, "
- "uuid_field={4b686716-5f20-4deb-8ce0-9eaf379e8a3d})");
+ "uuid_field=4b686716-5f20-4deb-8ce0-9eaf379e8a3d)");
}
BOOST_AUTO_TEST_SUITE_END()