mirror of
https://github.com/stleary/JSON-java.git
synced 2026-01-05 00:00:52 -05:00
Compare commits
2 Commits
1be6ee31a7
...
98df35449a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98df35449a | ||
|
|
a2d3d3c9b5 |
@@ -72,8 +72,10 @@ public class JSONPointerTest {
|
||||
|
||||
@Test
|
||||
public void queryByEmptyKeySubObject() {
|
||||
assertEquals( "{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
|
||||
" other value\"}", query("/obj/").toString());
|
||||
JSONObject json = new JSONObject("{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
|
||||
" other value\"}");
|
||||
JSONObject obj = (JSONObject) query("/obj/");
|
||||
assertTrue(json.similar(obj));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user