From d4392f7aa30a25c23a08054929268fddf5dbec07 Mon Sep 17 00:00:00 2001 From: Paolo Lucano Date: Mon, 28 Oct 2019 15:32:36 +0000 Subject: [PATCH] fixed issues 16 test --- exercises/16-Create-A-For-Loop/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/16-Create-A-For-Loop/test.py b/exercises/16-Create-A-For-Loop/test.py index d7f8eff5..9a9eb02e 100644 --- a/exercises/16-Create-A-For-Loop/test.py +++ b/exercises/16-Create-A-For-Loop/test.py @@ -25,7 +25,7 @@ def test_print(): content = [x.strip() for x in content] my_for = [s for s in content if "for x in range(300):" in s] my_forVar = content.index(my_for[0]) - regex_for = r"for x in range\(300\):" + regex_for = r"for (\w+) in range(\s*)\(300\):" my_print = [s for s in content if 'print("I will write questions if I am stuck")' in s] my_printVar = content.index(my_print[0]) regex_print = r"print\(\"I will write questions if I am stuck\"\)"