That's one of the reasons I suggest to separate the check digit from the integer list that is passed to the `passesMod11Test` _passesMod11Test_ , also change the method `mod11` _mod11_ so that it returns the module without the * (sum % 11 ) > 2 ? 11 - (sum % 11 ) : 0;* , the handling of the digit can be delegated to the passesMod11Test _passesMod11Test_ or better to `ModCheckValidator` _ModCheckValidator_
|