diff --git a/src/test/java/com/fasterxml/jackson/core/io/TestCharTypes.java b/src/test/java/com/fasterxml/jackson/core/io/TestCharTypes.java index b862b52942..fc1704f97a 100644 --- a/src/test/java/com/fasterxml/jackson/core/io/TestCharTypes.java +++ b/src/test/java/com/fasterxml/jackson/core/io/TestCharTypes.java @@ -20,4 +20,12 @@ public void testAppendQuoted0_31 () assertEquals(expected, actual); } } + + public void testHexOutOfRange() + { + final int[] inputs = {0, -1, 1, 129, -129}; + for (int input : inputs) { + assertEquals(-1, CharTypes.charToHex(input)); + } + } }