From d34be7fa2132fbdcf3230308cb73c3e1c5c017dd Mon Sep 17 00:00:00 2001 From: Douglas Crockford Date: Mon, 24 Oct 2011 16:03:07 -0700 Subject: [PATCH] corrected test --- Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Test.java b/Test.java index 311ac10..5f6f9d1 100755 --- a/Test.java +++ b/Test.java @@ -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 = ""; 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 {