mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
fix test
This commit is contained in:
parent
cbd0418704
commit
a66b97f60b
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ public class JSONObjectTest {
|
||||||
jsonObject = new JSONObject();
|
jsonObject = new JSONObject();
|
||||||
jsonObject.put("myNumber", new MyNumber());
|
jsonObject.put("myNumber", new MyNumber());
|
||||||
actual = jsonObject.toString();
|
actual = jsonObject.toString();
|
||||||
// the output is the toString of the number as a string.
|
// the output is the toString of the number as a number.
|
||||||
expected = "{\"myNumber\":\"42\"}";
|
expected = "{\"myNumber\":42}";
|
||||||
assertEquals("Not Equal", expected , actual);
|
assertEquals("Not Equal", expected , actual);
|
||||||
|
|
||||||
jsonObject = new JSONObject(Collections.singletonMap("myNumber", new AtomicInteger(42)));
|
jsonObject = new JSONObject(Collections.singletonMap("myNumber", new AtomicInteger(42)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue