mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-18 00:10:51 -07:00
Add another test
This commit is contained in:
parent
f4201cf318
commit
43f3f5e80b
2 changed files with 12 additions and 1 deletions
|
@ -74,6 +74,14 @@ public class JSONPointerTest {
|
|||
query("/obj//")
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryByEmptyKeySubObjectValue() {
|
||||
assertSame(
|
||||
document.getJSONObject("obj").getJSONObject("").get("subKey"),
|
||||
query("/obj//subKey")
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void slashEscaping() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue