diff --git a/exercises/09-Creating-Your-First-Function/test.py b/exercises/09-Creating-Your-First-Function/test.py index 90013d15..8cd7aeea 100644 --- a/exercises/09-Creating-Your-First-Function/test.py +++ b/exercises/09-Creating-Your-First-Function/test.py @@ -18,7 +18,7 @@ def test_use_my_var1(): my_return = [s for s in content if "return" in s] my_returnIndex = content.index(my_return[0]) # print(my_print_index) - regex = r"return a(\s*)\+(\s*)b" + regex = r"return(\s*)(\W*)a(\s*)\+(\s*)b(\s*)(\W*)" assert re.match(regex, content[my_returnIndex]) # assert re.match(regex, content) diff --git a/exercises/17-While-Loop/app.py b/exercises/17-While-Loop/app.py index 84b0e9db..04d18708 100644 --- a/exercises/17-While-Loop/app.py +++ b/exercises/17-While-Loop/app.py @@ -1,6 +1,6 @@ def start_counting(): counter = 100 - while counter <= 100: + while counter > -1: print(counter) counter-=1 return counter