From c2649a36c63d8c49f360f33fc5fd8a66fa178916 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Tue, 5 May 2015 10:52:31 +0800 Subject: [PATCH] Disable patternProperties tests when no regex --- test/unittest/schematest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unittest/schematest.cpp b/test/unittest/schematest.cpp index 51167dfe..39c028af 100644 --- a/test/unittest/schematest.cpp +++ b/test/unittest/schematest.cpp @@ -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( @@ -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\"}");