Removed recursion from msgpack::object packing and stringize.

Changed json expected strings.

Before this commit, json output has redundant white space.
The commit remove it. Semantically no difference.
This commit is contained in:
Takatoshi Kondo
2018-04-26 17:47:43 +09:00
parent 4cb938ed18
commit e3f5281903
5 changed files with 385 additions and 178 deletions

View File

@@ -17,7 +17,7 @@ TEST(json, basic_elements)
msgpack::object o(t1, z);
std::stringstream ss;
ss << o;
EXPECT_EQ(ss.str(), "[12, -34, 1.23, -4.56, true, false, \"ABC\", {\"Hello\":789, \"World\":-789}]");
EXPECT_EQ(ss.str(), "[12,-34,1.23,-4.56,true,false,\"ABC\",{\"Hello\":789,\"World\":-789}]");
}
TEST(json, escape)