From be4eaab3538fcd69d99f9bc48d1ff266f4a1c133 Mon Sep 17 00:00:00 2001 From: Ivan Zinchenko Date: Tue, 31 Oct 2023 14:36:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BE?= =?UTF-8?q?=D1=82=20=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index 2ad8940..b69b8ea 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,5 @@ import re -# 8<\ - def assert_eq(expression, eq): if expression == eq: @@ -25,13 +23,14 @@ for k, i in enumerate(tests): print(f"Тест {k+1} - ", end='') assert_eq(len(re.findall(reg, i[0])), i[1]) +# ------ # -reg = r"(?