Skip to content

Commit df6190f

Browse files
extra long integer test
1 parent d34be7f commit df6190f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ of this software and associated documentation files (the "Software"), to deal
4040
* comparisons of .toString to a string literal are likely to fail.
4141
*
4242
* @author JSON.org
43-
* @version 2011-10-24
43+
* @version 2011-10-25
4444
*/
4545
public class Test extends TestCase {
4646
public Test(String name) {
@@ -68,9 +68,9 @@ public void testXML() throws Exception {
6868
assertEquals("{\"test\": {\n \"blank\": \"\",\n \"empty\": \"\"\n}}", jsonobject.toString(2));
6969
assertEquals("<test><blank/><empty/></test>", XML.toString(jsonobject));
7070

71-
string = "<subsonic-response><playlists><playlist id=\"476c65652e6d3375\"/><playlist id=\"50617274792e78737066\"/></playlists></subsonic-response>";
71+
string = "<subsonic-response><playlists><playlist id=\"476c65652e6d3375\" int=\"12345678901234567890123456789012345678901234567890213991133777039355058536718668104339937\"/><playlist id=\"50617274792e78737066\"/></playlists></subsonic-response>";
7272
jsonobject = XML.toJSONObject(string);
73-
assertEquals("{\"subsonic-response\":{\"playlists\":{\"playlist\":[{\"id\":\"476c65652e6d3375\"},{\"id\":\"50617274792e78737066\"}]}}}", jsonobject.toString());
73+
assertEquals("{\"subsonic-response\":{\"playlists\":{\"playlist\":[{\"id\":\"476c65652e6d3375\",\"int\":\"12345678901234567890123456789012345678901234567890213991133777039355058536718668104339937\"},{\"id\":\"50617274792e78737066\"}]}}}", jsonobject.toString());
7474
}
7575

7676
public void testNull() throws Exception {

0 commit comments

Comments
 (0)