We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b898807 commit cc146faCopy full SHA for cc146fa
exercises/luhn/luhn_test.py
@@ -2,7 +2,7 @@
2
3
from luhn import Luhn
4
5
-# Tests adapted from `problem-specifications//canonical-data.json` @ v1.6.1
+# Tests adapted from `problem-specifications//canonical-data.json` @ v1.7.0
6
7
8
class LuhnTest(unittest.TestCase):
@@ -27,6 +27,9 @@ def test_invalid_canadian_sin(self):
27
def test_invalid_credit_card(self):
28
self.assertIs(Luhn("8273 1232 7352 0569").valid(), False)
29
30
+ def test_invalid_long_number_with_an_even_remainder(self):
31
+ self.assertIs(Luhn("1 2345 6789 1234 5678 9012").valid(), False)
32
+
33
def test_valid_number_with_an_even_number_of_digits(self):
34
self.assertIs(Luhn("095 245 88").valid(), True)
35
0 commit comments