Disable printing hash code

This commit is contained in:
miloyip 2015-05-10 10:23:15 +08:00
parent 8209077b8a
commit c040d26c79

View File

@ -27,7 +27,7 @@ using namespace rapidjson;
internal::Hasher<Value, CrtAllocator> h1, h2;\ internal::Hasher<Value, CrtAllocator> h1, h2;\
d1.Accept(h1);\ d1.Accept(h1);\
d2.Accept(h2);\ d2.Accept(h2);\
printf("%s: 0x%016llx\n%s: 0x%016llx\n\n", json1, h1.GetHashCode(), json2, h2.GetHashCode());\ /*printf("%s: 0x%016llx\n%s: 0x%016llx\n\n", json1, h1.GetHashCode(), json2, h2.GetHashCode());*/\
EXPECT_TRUE(expected == (h1.GetHashCode() == h2.GetHashCode()));\ EXPECT_TRUE(expected == (h1.GetHashCode() == h2.GetHashCode()));\
} }
@ -847,7 +847,7 @@ public:
private: private:
RemoteSchemaDocumentProvider(const RemoteSchemaDocumentProvider&); RemoteSchemaDocumentProvider(const RemoteSchemaDocumentProvider&);
static const size_t kCount = 4; static const size_t kCount = 4;
Document* d_[kCount]; Document* d_[kCount];
SchemaDocument* sd_[kCount]; SchemaDocument* sd_[kCount];