File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 1.2 .0
1+ 1.4 .0
Original file line number Diff line number Diff line change @@ -54,12 +54,24 @@ public void testInvalidCreditCardInvalid() {
5454 assertFalse (luhnValidator .isValid ("8273 1232 7352 0569" ));
5555 }
5656
57+ @ Ignore ("Remove to run test" )
58+ @ Test
59+ public void testValidNumberWithAnEvenNumberOfDigits () {
60+ assertTrue (luhnValidator .isValid ("095 245 88" ));
61+ }
62+
5763 @ Ignore ("Remove to run test" )
5864 @ Test
5965 public void testStringsContainingNonDigitInvalid () {
6066 assertFalse (luhnValidator .isValid ("055a 444 285" ));
6167 }
6268
69+ @ Ignore ("Remove to run test" )
70+ @ Test
71+ public void testValidStringsWithANonDigitAtEndInvalid () {
72+ assertFalse (luhnValidator .isValid ("059a" ));
73+ }
74+
6375 @ Ignore ("Remove to run test" )
6476 @ Test
6577 public void testStringContainingPunctuationInvalid () {
You can’t perform that action at this time.
0 commit comments