Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/com/jsoniter/IterImplForStreaming.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public static final String readNumber(final JsonIterator iter) throws IOExceptio
byte c = iter.buf[i];
switch (c) {
case '-':
case '+':
case '.':
case 'e':
case 'E':
Expand Down
13 changes: 13 additions & 0 deletions src/test/java/com/jsoniter/IterImplForStreamingTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.jsoniter;

import junit.framework.TestCase;

public class IterImplForStreamingTest extends TestCase {

public void testReadMaxDouble() throws Exception {
String maxDouble = "1.7976931348623157e+308";
JsonIterator iter = JsonIterator.parse("1.7976931348623157e+308");
String number = IterImplForStreaming.readNumber(iter);
assertEquals(maxDouble, number);
}
}