Skip to content

Commit ce2f5ed

Browse files
Remove bad tests.
1 parent f4cb147 commit ce2f5ed

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Test.java

+1-7
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-02-09
43+
* @version 2011-05-22
4444
*/
4545
public class Test extends TestCase {
4646
public Test(String name) {
@@ -78,7 +78,6 @@ public void testNull() throws Exception {
7878

7979
jsonobject = new JSONObject("{\"message\":null}");
8080
assertTrue(jsonobject.isNull("message"));
81-
assertEquals(null, jsonobject.get("message"));
8281
}
8382

8483
public void testJSON() throws Exception {
@@ -294,8 +293,6 @@ public void testJSON() throws Exception {
294293
XML.toString(jsonobject));
295294
assertEquals(98.6d, jsonobject.getDouble("String"), eps);
296295
assertTrue(jsonobject.getBoolean("bool"));
297-
assertEquals(null, jsonobject.get("to"));
298-
assertEquals("true", jsonobject.getString("true"));
299296
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 <fine>.\",true,false,[],{}]",
300297
jsonobject.getJSONArray("foo").toString());
301298
assertEquals("Good", jsonobject.getString("op"));
@@ -402,9 +399,6 @@ public void testJSON() throws Exception {
402399
assertTrue(jsonobject.has("nix"));
403400
assertEquals("<Request-URI>/</Request-URI><nix>null</nix><nux>false</nux><Method>GET</Method><HTTP-Version>HTTP/1.0</HTTP-Version><null>null</null>",
404401
XML.toString(jsonobject));
405-
assertEquals("GET \"/\" HTTP/1.0\r\n" +
406-
"nux: false\r\n" +
407-
"null: null\r\n\r\n", HTTP.toString(jsonobject));
408402

409403
jsonobject = XML.toJSONObject("<?xml version='1.0' encoding='UTF-8'?>" + "\n\n" + "<SOAP-ENV:Envelope" +
410404
" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"" +

0 commit comments

Comments
 (0)