Try diagnosis Valgrind error

This commit is contained in:
miloyip 2015-05-03 19:58:25 +08:00
parent f55002c9a2
commit b55a9bcacb

View File

@ -300,6 +300,7 @@ TEST(Pointer, Parse_URIFragment) {
GenericPointer<GenericValue<UTF16<> > > p(L"#/%C2%A2");
EXPECT_TRUE(p.IsValid());
EXPECT_EQ(1u, p.GetTokenCount());
printf("%x %x %u\n", p.GetTokens()[0].name[0], p.GetTokens()[0].name[1], p.GetTokens()[0].length);
EXPECT_STREQ(L"\x00A2", p.GetTokens()[0].name);
}
@ -308,6 +309,7 @@ TEST(Pointer, Parse_URIFragment) {
GenericPointer<GenericValue<UTF16<> > > p(L"#/%E2%82%AC");
EXPECT_TRUE(p.IsValid());
EXPECT_EQ(1u, p.GetTokenCount());
printf("%x %x %u\n", p.GetTokens()[0].name[0], p.GetTokens()[0].name[1], p.GetTokens()[0].length);
EXPECT_STREQ(L"\x20AC", p.GetTokens()[0].name);
}