Commit 3d77ef8e authored by miloyip@gmail.com's avatar miloyip@gmail.com

Added GenericStringBuffer::GetSize() within unit test, as in 0.1x branch.

git-svn-id: https://rapidjson.googlecode.com/svn/trunk@61 c5894555-1306-4e8d-425f-1f6f381ee07c
parent 8668aebf
......@@ -12,6 +12,7 @@ TEST(Writer, Compact) {
Reader reader;
reader.Parse<0>(s, writer);
EXPECT_STREQ("{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3]}", buffer.GetString());
EXPECT_EQ(77, buffer.GetSize());
}
// json -> parse -> writer -> json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment