mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
corrected test
This commit is contained in:
parent
88f27f3168
commit
d34be7fa21
@ -40,7 +40,7 @@ SOFTWARE.
|
||||
* comparisons of .toString to a string literal are likely to fail.
|
||||
*
|
||||
* @author JSON.org
|
||||
* @version 2011-10-16
|
||||
* @version 2011-10-24
|
||||
*/
|
||||
public class Test extends TestCase {
|
||||
public Test(String name) {
|
||||
@ -70,7 +70,7 @@ public class Test extends TestCase {
|
||||
|
||||
string = "<subsonic-response><playlists><playlist id=\"476c65652e6d3375\"/><playlist id=\"50617274792e78737066\"/></playlists></subsonic-response>";
|
||||
jsonobject = XML.toJSONObject(string);
|
||||
assertEquals("{\"subsonic-response\":\"playlists\":{\"playlist\":[{\"id\":\"476c65652e6d337\"},\"id\":\"50617274792e78737066\"}]}}}", jsonobject.toString());
|
||||
assertEquals("{\"subsonic-response\":{\"playlists\":{\"playlist\":[{\"id\":\"476c65652e6d3375\"},{\"id\":\"50617274792e78737066\"}]}}}", jsonobject.toString());
|
||||
}
|
||||
|
||||
public void testNull() throws Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user