Skip to content

Commit fbc3f6e

Browse files
committed
removed unnecessary assertions
1 parent d437cec commit fbc3f6e

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
@@ -582,7 +582,7 @@ public void testJSON() throws Exception {
582582
// XML.toString(j));
583583
assertEquals(98.6d, j.getDouble("String"));
584584
assertTrue(j.getBoolean("bool"));
585-
assertEquals("null", j.getString("to"));
585+
assertEquals(null, j.getString("to"));
586586
assertEquals("true", j.getString("true"));
587587
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,[],{}]",
588588
j.getJSONArray("foo").toString());
@@ -1203,7 +1203,7 @@ public void testJSON() throws Exception {
12031203
} catch (JSONException expected) {
12041204
}
12051205
try {
1206-
assertEquals(98.6, j.getInt("string"));
1206+
j.getInt("string");
12071207
fail("should fail with - JSONObject[\"string\"] is not an int.");
12081208
} catch (JSONException expected) {
12091209
}
@@ -1218,7 +1218,7 @@ public void testJSON() throws Exception {
12181218
} catch (JSONException expected) {
12191219
}
12201220
try {
1221-
assertEquals(98.6, j.getLong("string"));
1221+
j.getLong("string");
12221222
fail("should fail with - JSONObject[\"string\"] is not a long.");
12231223
} catch (JSONException expected) {
12241224
}

0 commit comments

Comments
 (0)