From 62dbe32f259880efa4d866f1694d28456bad2a03 Mon Sep 17 00:00:00 2001 From: Ernesto Gonzalez <60261375+UmiKami@users.noreply.github.com> Date: Thu, 20 Jul 2023 16:49:56 +0000 Subject: [PATCH] first test now allows letters and numbers as param --- exercises/08-Function-that-returns/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/08-Function-that-returns/test.py b/exercises/08-Function-that-returns/test.py index 812e1c7..a8829b7 100755 --- a/exercises/08-Function-that-returns/test.py +++ b/exercises/08-Function-that-returns/test.py @@ -5,7 +5,7 @@ def test_declare_variable(): path = os.path.dirname(os.path.abspath(__file__))+'/app.py' with open(path, 'r') as content_file: content = content_file.read() - regex = re.compile(r"dollar_to_euro\(\s*\d+\s*\)") + regex = re.compile(r"dollar_to_euro\s*\(\s*[a-zA-Z0-9]*\s*\)") assert bool(regex.search(content)) == True