We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a8193b commit e4b76d6Copy full SHA for e4b76d6
1 file changed
src/test/java/org/json/junit/JSONObjectTest.java
@@ -115,10 +115,17 @@ public void verifySimilar() {
115
.put("key2", 2)
116
.put("key3", new String(string1));
117
118
- assertFalse("Should eval to false", obj1.similar(obj2));
+ JSONObject obj4 = new JSONObject()
119
+ .put("key1", "abc")
120
+ .put("key2", 2.0)
121
+ .put("key3", new String(string1));
122
123
+ assertFalse("Should eval to false", obj1.similar(obj2));
124
+
125
assertTrue("Should eval to true", obj1.similar(obj3));
126
127
+ assertTrue("Should eval to true", obj1.similar(obj4));
128
129
}
130
131
@Test
0 commit comments