File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ interface
5
5
DUnitX.TestFramework;
6
6
7
7
const
8
- CanonicalVersion = ' 1.3 .0' ;
8
+ CanonicalVersion = ' 1.4 .0' ;
9
9
10
10
type
11
11
@@ -48,6 +48,10 @@ TLuhnTest = class(TObject)
48
48
[Ignore]
49
49
procedure valid_strings_with_a_non_digit_included_become_invalid ;
50
50
51
+ [Test]
52
+ [Ignore]
53
+ procedure valid_strings_with_a_non_digit_added_at_the_end_become_invalid ;
54
+
51
55
[Test]
52
56
[Ignore]
53
57
procedure valid_strings_with_punctuation_included_become_invalid ;
@@ -138,6 +142,11 @@ procedure TLuhnTest.valid_number_with_an_even_number_of_digits;
138
142
Assert.AreEqual(true, TLuhn.Valid(' 095 245 88' ));
139
143
end ;
140
144
145
+ procedure TLuhnTest.valid_strings_with_a_non_digit_added_at_the_end_become_invalid ;
146
+ begin
147
+ Assert.AreEqual(false, TLuhn.Valid(' 059a' ));
148
+ end ;
149
+
141
150
procedure TLuhnTest.valid_strings_with_a_non_digit_included_become_invalid ;
142
151
begin
143
152
Assert.AreEqual(false, TLuhn.Valid(' 055a 444 285' ));
You can’t perform that action at this time.
0 commit comments