mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-09 19:24:23 +01:00
Disable patternProperties tests when no regex
This commit is contained in:
parent
efc1932c0d
commit
c2649a36c6
@ -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\"}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user