started fixing #323

This commit is contained in:
Niels 2016-10-08 14:27:28 +02:00
parent a0ef5a194c
commit 2fa8ea0f74
5 changed files with 101 additions and 15 deletions

View file

@ -482,4 +482,11 @@ TEST_CASE("regression tests")
CHECK_NOTHROW(j << f);
}
}
SECTION("issue #323 - add nested object capabilities to pointers")
{
json j;
j["/this/that"_json_pointer] = 27;
CHECK(j == json({{"this", {{"that", 27}}}}));
}
}