garydgregory commented on code in PR #399:
URL: https://github.com/apache/commons-validator/pull/399#discussion_r3416751041
##########
src/test/java/org/apache/commons/validator/routines/ISINValidatorTest.java:
##########
@@ -110,4 +111,15 @@ void testIsValidTrue() {
}
}
+ @Test
+ void testValidWithSurroundingWhitespaceCountryCode() {
+ // The underlying CodeValidator trims the input, so the country code
must be
+ // derived from the trimmed code. Otherwise a valid ISIN with leading
whitespace
+ // is accepted without the country check but rejected with it.
+ final String leading = " US0378331005";
Review Comment:
How about trailing whitespace?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]