mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
Add another test
This commit is contained in:
@@ -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() {
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user