mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 02:35:33 +08:00
Fix Flaky Test
This commit is contained in:
@@ -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