Try to fix valgrind error

This commit is contained in:
miloyip 2015-05-03 19:27:12 +08:00
parent 6582160a12
commit f55002c9a2

View File

@ -295,22 +295,6 @@ TEST(Pointer, Parse_URIFragment) {
EXPECT_STREQ("\xC2\xA2", p.GetTokens()[0].name); EXPECT_STREQ("\xC2\xA2", p.GetTokens()[0].name);
} }
{
// Decode UTF-8 perecent encoding to UTF-16
GenericPointer<GenericValue<UTF16<> > > p(L"#/%C2%A2");
EXPECT_TRUE(p.IsValid());
EXPECT_EQ(1u, p.GetTokenCount());
EXPECT_STREQ(L"\xA2", p.GetTokens()[0].name);
}
{
// Decode UTF-8 perecent encoding to UTF-16
GenericPointer<GenericValue<UTF16<> > > p(L"#/%C2%A2");
EXPECT_TRUE(p.IsValid());
EXPECT_EQ(1u, p.GetTokenCount());
EXPECT_STREQ(L"\xA2", p.GetTokens()[0].name);
}
{ {
// Decode UTF-8 perecent encoding to UTF-16 // Decode UTF-8 perecent encoding to UTF-16
GenericPointer<GenericValue<UTF16<> > > p(L"#/%C2%A2"); GenericPointer<GenericValue<UTF16<> > > p(L"#/%C2%A2");