mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 19:14:15 +08:00
Add another test
This commit is contained in:
@@ -74,6 +74,14 @@ public class JSONPointerTest {
|
|||||||
query("/obj//")
|
query("/obj//")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryByEmptyKeySubObjectValue() {
|
||||||
|
assertSame(
|
||||||
|
document.getJSONObject("obj").getJSONObject("").get("subKey"),
|
||||||
|
query("/obj//subKey")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void slashEscaping() {
|
public void slashEscaping() {
|
||||||
|
@@ -20,6 +20,9 @@
|
|||||||
"val"
|
"val"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"" : { "" : "empty key of an object with an empty key" }
|
"" : {
|
||||||
|
"" : "empty key of an object with an empty key",
|
||||||
|
"subKey" : "Some other value"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user