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.isValid()}}
|