From a39d66a53c25ef4150071d8f131d68f92d346e57 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Sun, 23 Jul 2023 18:07:45 +0200 Subject: [PATCH] Update __init__.py Added test for a 15 digit VISA, as per cs50/check50 #309. --- credit/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/credit/__init__.py b/credit/__init__.py index 83c15c08..efc54e61 100644 --- a/credit/__init__.py +++ b/credit/__init__.py @@ -75,3 +75,8 @@ def test12(): def test13(): """identifies 4222222222223 as INVALID""" check50.run("./credit").stdin("4222222222223").stdout("INVALID\n").stdout(check50.EOF).exit(0) + +@check50.check(compiles) +def test14(): + """identifies 400000000000006 as INVALID""" + check50.run("./credit").stdin("400000000000006").stdout("INVALID\n").stdout(check50.EOF).exit(0)