Update OneOfConstraint to use custom allocator, with better encapsulation

This commit is contained in:
Tristan Penman
2015-12-27 22:02:23 +11:00
parent d534c49393
commit c53268ba77
5 changed files with 97 additions and 63 deletions

View File

@@ -88,7 +88,7 @@ TEST_F(TestValidationErrors, AllOfConstraintFailure)
EXPECT_TRUE( results.popError(error) );
EXPECT_EQ( 1, error.context.size() );
EXPECT_EQ( "<root>", error.context[0] );
EXPECT_EQ( "Failed to validate against child schema #0 of allOf constraint.", error.description );
EXPECT_EQ( "Failed to validate against child schema #0.", error.description );
EXPECT_FALSE( results.popError(error) );