1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

Add another test

This commit is contained in:
John J. Aylward 2018-03-19 09:48:50 -04:00
parent f4201cf318
commit 43f3f5e80b
2 changed files with 12 additions and 1 deletions

View file

@ -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() {

View file

@ -20,6 +20,9 @@
"val"
]
},
"" : { "" : "empty key of an object with an empty key" }
"" : {
"" : "empty key of an object with an empty key",
"subKey" : "Some other value"
}
}
}