youngnh/luhnybin — comment on commit 6b313b765e33131f0c92bc0fbd638944d106ab05
File:  line 0
By youngnh:

You're right that this test is probably introducing overlapping valid numbers that should be XX'd out.

I was trying to get at the case where I had 2 credit card numbers on either side of some other random digits.

Maybe a clearer test would be replacing the nonMatchingSequence(i) with " phone: 867-5309 " or something similar, for the purposes of this coding excercise, you don't want those digits XX'd out. My implementation fails in that regard.