Commit 0163a53f authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #841 from StilesCrisis/improve-unit-test-reporting

Improved reporting
parents 738864c5 6769f3e3
......@@ -69,10 +69,10 @@ TEST(JsonChecker, Reader) {
GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no memory leak)
document.Parse(json);
EXPECT_TRUE(document.HasParseError());
EXPECT_TRUE(document.HasParseError()) << filename;
document.Parse<kParseIterativeFlag>(json);
EXPECT_TRUE(document.HasParseError());
EXPECT_TRUE(document.HasParseError()) << filename;
free(json);
}
......@@ -89,10 +89,10 @@ TEST(JsonChecker, Reader) {
GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no memory leak)
document.Parse(json);
EXPECT_FALSE(document.HasParseError());
EXPECT_FALSE(document.HasParseError()) << filename;
document.Parse<kParseIterativeFlag>(json);
EXPECT_FALSE(document.HasParseError());
EXPECT_FALSE(document.HasParseError()) << filename;
free(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