mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-10 12:34:30 +08:00
add usage of isEmpty method
This commit is contained in:
@@ -691,7 +691,7 @@ public class JSONArrayTest {
|
||||
JSONArray jsonArray = new JSONArray(arrayStr1);
|
||||
jsonArray.remove(0);
|
||||
assertTrue("array should be empty", null == jsonArray.remove(5));
|
||||
assertTrue("jsonArray should be empty", jsonArray.length() == 0);
|
||||
assertTrue("jsonArray should be empty", jsonArray.isEmpty());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user