Skip to content

Commit a66b97f

Browse files
author
John J. Aylward
committed
fix test
1 parent cbd0418 commit a66b97f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/json/junit/JSONObjectTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public void verifyNumberOutput(){
183183
jsonObject = new JSONObject();
184184
jsonObject.put("myNumber", new MyNumber());
185185
actual = jsonObject.toString();
186-
// the output is the toString of the number as a string.
187-
expected = "{\"myNumber\":\"42\"}";
186+
// the output is the toString of the number as a number.
187+
expected = "{\"myNumber\":42}";
188188
assertEquals("Not Equal", expected , actual);
189189

190190
jsonObject = new JSONObject(Collections.singletonMap("myNumber", new AtomicInteger(42)));

0 commit comments

Comments
 (0)