mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Add maxLength and minLength tests for draft 7
This commit is contained in:
parent
9183462118
commit
df89869e00
@ -48,7 +48,7 @@ public:
|
||||
/**
|
||||
* @brief Release memory associated with custom ConstraintBuilders
|
||||
*/
|
||||
virtual ~SchemaParser()
|
||||
virtual ~SchemaParser()
|
||||
{
|
||||
for (const auto& entry : constraintBuilders) {
|
||||
delete entry.second;
|
||||
|
@ -512,6 +512,11 @@ TEST_F(TestValidator, Draft7_MaxItems)
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/maxItems.json");
|
||||
}
|
||||
|
||||
TEST_F(TestValidator, Draft7_MaxLength)
|
||||
{
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/maxLength.json");
|
||||
}
|
||||
|
||||
TEST_F(TestValidator, Draft7_MaxProperties)
|
||||
{
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/maxProperties.json");
|
||||
@ -527,6 +532,11 @@ TEST_F(TestValidator, Draft7_MinItems)
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/minItems.json");
|
||||
}
|
||||
|
||||
TEST_F(TestValidator, Draft7_MinLength)
|
||||
{
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/minLength.json");
|
||||
}
|
||||
|
||||
TEST_F(TestValidator, Draft7_MinProperties)
|
||||
{
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/minProperties.json");
|
||||
|
Loading…
Reference in New Issue
Block a user