Improve coverage for SchemaValidator:::AppendToken()
This commit is contained in:
parent
954f80872d
commit
ed6fdb6d78
@ -960,6 +960,19 @@ TEST(SchemaValidator, AllOf_Nested) {
|
|||||||
INVALIDATE(s, "123", "", "allOf", "");
|
INVALIDATE(s, "123", "", "allOf", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(SchemaValidator, EscapedPointer) {
|
||||||
|
Document sd;
|
||||||
|
sd.Parse(
|
||||||
|
"{"
|
||||||
|
" \"type\": \"object\","
|
||||||
|
" \"properties\": {"
|
||||||
|
" \"~/\": { \"type\": \"number\" }"
|
||||||
|
" }"
|
||||||
|
"}");
|
||||||
|
SchemaDocument s(sd);
|
||||||
|
INVALIDATE(s, "{\"~/\":true}", "/properties/~0~1", "type", "/~0~1");
|
||||||
|
}
|
||||||
|
|
||||||
template <typename Allocator>
|
template <typename Allocator>
|
||||||
static char* ReadFile(const char* filename, Allocator& allocator) {
|
static char* ReadFile(const char* filename, Allocator& allocator) {
|
||||||
const char *paths[] = {
|
const char *paths[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user