We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6102f0b commit 123d7c8Copy full SHA for 123d7c8
test/unittest/pointertest.cpp
@@ -674,6 +674,9 @@ TEST(Pointer, Get) {
674
EXPECT_EQ(2u, unresolvedTokenIndex);
675
EXPECT_TRUE(Pointer("/foo/0/a").Get(d, &unresolvedTokenIndex) == 0); // "/foo/0" is an string, cannot further query
676
677
+
678
+ Pointer::Token tokens[] = { { "foo ...", 3, kPointerInvalidIndex } };
679
+ EXPECT_EQ(&d["foo"], Pointer(tokens, 1).Get(d));
680
}
681
682
TEST(Pointer, GetWithDefault) {
0 commit comments