This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 50478b4a5a0a78a0d7c328da7afd73505cfe413c Author: Gary Gregory <[email protected]> AuthorDate: Tue Aug 4 07:37:03 2026 -0400 Split ConversionTest.testHexDigitToInt() --- src/test/java/org/apache/commons/lang3/ConversionTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/org/apache/commons/lang3/ConversionTest.java b/src/test/java/org/apache/commons/lang3/ConversionTest.java index 67828318f..ffdf1e24f 100644 --- a/src/test/java/org/apache/commons/lang3/ConversionTest.java +++ b/src/test/java/org/apache/commons/lang3/ConversionTest.java @@ -687,6 +687,13 @@ void testHexDigitToInt() { assertEquals(14, Conversion.hexDigitToInt('e')); assertEquals(15, Conversion.hexDigitToInt('F')); assertEquals(15, Conversion.hexDigitToInt('f')); + } + + /** + * Tests {@link Conversion#hexDigitToInt(char)}. + */ + @Test + void testHexDigitToIntIllegalArgumentException() { assertIllegalArgumentException(() -> Conversion.hexDigitToInt('G')); assertIllegalArgumentException(() -> Conversion.hexDigitToInt('\uFF41')); // FULLWIDTH LATIN SMALL LETTER A assertIllegalArgumentException(() -> Conversion.hexDigitToInt('\uFF26')); // FULLWIDTH LATIN CAPITAL LETTER F
