Skip to content

Commit

Permalink
Disable patternProperties tests when no regex
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed May 5, 2015
1 parent efc1932 commit c2649a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unittest/schematest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ TEST(SchemaValidator, Object_PropertyDependencies) {
VALIDATE(s, "{ \"name\": \"John Doe\", \"billing_address\": \"555 Debtor's Lane\" }", true);
}

#if RAPIDJSON_SCHEMA_HAS_REGEX

TEST(SchemaValidator, Object_PatternProperties) {
Document sd;
sd.Parse(
Expand Down Expand Up @@ -354,6 +356,8 @@ TEST(SchemaValidator, Object_PatternProperties_AdditionalProperties) {
VALIDATE(s, "{ \"keyword\": 42 }", false);
}

#endif // RAPIDJSON_SCHEMA_HAS_REGEX

TEST(SchemaValidator, Array) {
Document sd;
sd.Parse("{\"type\":\"array\"}");
Expand Down

0 comments on commit c2649a3

Please sign in to comment.