mirror of
				https://github.com/Tencent/rapidjson.git
				synced 2025-10-27 11:06:53 +01:00 
			
		
		
		
	Try diagnosis Valgrind error
This commit is contained in:
		| @@ -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); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 miloyip
					miloyip