|
|
@@ -19,19 +19,19 @@ public class LuhnValidatorTest {
|
|
19
|
19
|
|
|
20
|
20
|
@Ignore
|
|
21
|
21
|
@Test
|
|
22
|
|
- public void testThatASimpleValidCanadianSocialInsuranceNumberIsIdentifiedAsValid() {
|
|
|
22
|
+ public void testThatASimpleValidNumberIsIdentifiedAsValid() {
|
|
23
|
23
|
assertTrue(new LuhnValidator().isValid(" 5 9 "));
|
|
24
|
24
|
}
|
|
25
|
25
|
|
|
26
|
26
|
@Ignore
|
|
27
|
27
|
@Test
|
|
28
|
|
- public void testThatAComplexValidCanadianSocialInsuranceNumberIsIdentifiedAsValidV1() {
|
|
|
28
|
+ public void testThatAValidCanadianSocialInsuranceNumberIsIdentifiedAsValidV1() {
|
|
29
|
29
|
assertTrue(new LuhnValidator().isValid("046 454 286"));
|
|
30
|
30
|
}
|
|
31
|
31
|
|
|
32
|
32
|
@Ignore
|
|
33
|
33
|
@Test
|
|
34
|
|
- public void testThatAComplexValidCanadianSocialInsuranceNumberIsIdentifiedAsValidV2() {
|
|
|
34
|
+ public void testThatAValidCanadianSocialInsuranceNumberIsIdentifiedAsValidV2() {
|
|
35
|
35
|
assertTrue(new LuhnValidator().isValid("055 444 285"));
|
|
36
|
36
|
}
|
|
37
|
37
|
|