commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1649288 - /commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
Date Sun, 04 Jan 2015 03:50:38 GMT
Author: sebb
Date: Sun Jan  4 03:50:38 2015
New Revision: 1649288

URL: http://svn.apache.org/r1649288
Log:
VALIDATOR-344 - AbstractCheckDigit class does not fully test invalid strings
3) Validation of string length 1

Modified:
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java

Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java?rev=1649288&r1=1649287&r2=1649288&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
(original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/AbstractCheckDigitTest.java
Sun Jan  4 03:50:38 2015
@@ -211,6 +211,10 @@ public abstract class AbstractCheckDigit
         // isValid() zero length
         assertFalse("isValid() Zero Length", routine.isValid(""));
 
+        // isValid() length 1
+        // Don't use 0, because that passes for Verhoef (not sure why yet)
+        assertFalse("isValid() Length 1", routine.isValid("9"));
+
         // calculate() null
         try {
             routine.calculate(null);



Mime
View raw message