Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-10 Thread via GitHub
garydgregory merged PR #217: URL: https://github.com/apache/commons-validator/pull/217 -- 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: issues-unsubscr..

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
homebeaver commented on code in PR #217: URL: https://github.com/apache/commons-validator/pull/217#discussion_r1591470221 ## src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java: ## @@ -154,7 +154,11 @@ public void testCalculateInvalid() {

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
homebeaver commented on PR #217: URL: https://github.com/apache/commons-validator/pull/217#issuecomment-2096673914 > OK, then please add a test for that, something like `testMinimum()`, and the whatever the max value is (if there is one, if not something that looks very large). Boun

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
garydgregory commented on code in PR #217: URL: https://github.com/apache/commons-validator/pull/217#discussion_r1591128203 ## src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java: ## @@ -154,7 +154,11 @@ public void testCalculateInvalid() {

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
garydgregory commented on PR #217: URL: https://github.com/apache/commons-validator/pull/217#issuecomment-2096227738 > The theoretical MIN valid EC-Number is 000-001-6; OK, then please add a test for that, something like `testMinimum()`, and the whatever the max value is (if there is

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
homebeaver commented on PR #217: URL: https://github.com/apache/commons-validator/pull/217#issuecomment-2096067917 > ...I don't see tests that make sure _invalid_ input is in fact invalid. For example, when the check digit is incorrect. @garydgregory Test `AbstractCheckDigitT

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
garydgregory commented on code in PR #217: URL: https://github.com/apache/commons-validator/pull/217#discussion_r1590936802 ## src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java: ## @@ -185,6 +185,16 @@ protected int toInt(final char character,

[PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
homebeaver opened a new pull request, #217: URL: https://github.com/apache/commons-validator/pull/217 Hi @garydgregory I incidently closed PR #216 - so I open a new one. Your hints from yesterday are done with last two commits. Same description: CASNumberCheckDigit - CAS

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-06 Thread via GitHub
homebeaver closed pull request #216: Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit URL: https://github.com/apache/commons-validator/pull/216 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-05 Thread via GitHub
garydgregory commented on code in PR #216: URL: https://github.com/apache/commons-validator/pull/216#discussion_r1590324152 ## src/main/java/org/apache/commons/validator/routines/checkdigit/CASNumberCheckDigit.java: ## @@ -0,0 +1,140 @@ +/* + * Licensed to the Apache Software Fo

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-05 Thread via GitHub
homebeaver commented on PR #216: URL: https://github.com/apache/commons-validator/pull/216#issuecomment-2094706124 > ... see my comments. Tkx for hints @garydgregory - Changes done - regards -- This is an automated message from the Apache Git Service. To respond to the message, ple

Re: [PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-04 Thread via GitHub
garydgregory commented on code in PR #216: URL: https://github.com/apache/commons-validator/pull/216#discussion_r1590003430 ## src/main/java/org/apache/commons/validator/routines/checkdigit/ECNumberCheckDigit.java: ## @@ -0,0 +1,116 @@ +/* + * Licensed to the Apache Software Fou

[PR] Validator CASNumberCheckDigit for Chemical Registry CAS Numbers and ECNumberCheckDigit [commons-validator]

2024-05-04 Thread via GitHub
homebeaver opened a new pull request, #216: URL: https://github.com/apache/commons-validator/pull/216 CASNumberCheckDigit - CAS Chemical Abstracts Service RN Registry No CAS Numbers are unique identification numbers used to identify chemical substance described in the open scientifi