From ce2f5ed80a2cfe665779a1304831061cf97c8526 Mon Sep 17 00:00:00 2001 From: Douglas Crockford Date: Sun, 22 May 2011 04:30:50 -0700 Subject: [PATCH] Remove bad tests. --- Test.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Test.java b/Test.java index 7f34eba..4cd1ace 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-02-09 + * @version 2011-05-22 */ public class Test extends TestCase { public Test(String name) { @@ -78,7 +78,6 @@ public class Test extends TestCase { jsonobject = new JSONObject("{\"message\":null}"); assertTrue(jsonobject.isNull("message")); - assertEquals(null, jsonobject.get("message")); } public void testJSON() throws Exception { @@ -294,8 +293,6 @@ public class Test extends TestCase { XML.toString(jsonobject)); assertEquals(98.6d, jsonobject.getDouble("String"), eps); assertTrue(jsonobject.getBoolean("bool")); - assertEquals(null, jsonobject.get("to")); - assertEquals("true", jsonobject.getString("true")); assertEquals("[true,false,9876543210,0,1.00000001,1.000000000001,1,1.0E-17,2,0.1,2.0E100,-32,[],{},\"string\",666,2001.99,\"so \\\"fine\\\".\",\"so .\",true,false,[],{}]", jsonobject.getJSONArray("foo").toString()); assertEquals("Good", jsonobject.getString("op")); @@ -402,9 +399,6 @@ public class Test extends TestCase { assertTrue(jsonobject.has("nix")); assertEquals("/nullfalseGETHTTP/1.0null", XML.toString(jsonobject)); - assertEquals("GET \"/\" HTTP/1.0\r\n" + - "nux: false\r\n" + - "null: null\r\n\r\n", HTTP.toString(jsonobject)); jsonobject = XML.toJSONObject("" + "\n\n" + "