Skip to content

Commit

Permalink
Add test against regression wrt #1173 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 12, 2024
1 parent 5c99090 commit 4f94ac6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fasterxml.jackson.failing;
package com.fasterxml.jackson.core.read;

import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -38,7 +38,7 @@ public void testRecoverNumberChars() throws Exception {

private void _testRecoverNumber(int mode) throws Exception
{
try (JsonParser p = createParser(JSON_F, mode, "1\n[ , ]\n3")) {
try (JsonParser p = createParser(JSON_F, mode, "1\n[ , ]\n3 ")) {
assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken());
assertEquals(1, p.getIntValue());
assertToken(JsonToken.START_ARRAY, p.nextToken());
Expand All @@ -54,6 +54,6 @@ private void _testRecoverNumber(int mode) throws Exception
assertToken(JsonToken.VALUE_NUMBER_INT, p.nextToken());
assertEquals(3, p.getIntValue());
assertNull(p.nextToken());
}
}
}
}

0 comments on commit 4f94ac6

Please sign in to comment.