Skip to content

Commit 7e80d42

Browse files
committed
step7
1 parent 16a8285 commit 7e80d42

File tree

3 files changed

+5
-48
lines changed

3 files changed

+5
-48
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ coverage.xml
88
hello.py
99
demo.cast
1010
.python-version
11+
demo1.cast
12+
demo3.cast
1113

actual_output.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

gendiff/tests/diff_generator_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def test_generate_diff(file1, file2, expected_file):
1919
expected_result = f.read().strip()
2020

2121
def normalize_text(text):
22-
text = re.sub(r'\s*:\s*', ': ', text) # Ровный пробел перед двоеточием
23-
text = re.sub(r'\s*{\s*', ' { ', text) # Ровный пробел перед `{`
24-
text = re.sub(r'\s+', ' ', text).strip() # Убираем лишние пробелы
22+
text = re.sub(r'\s*:\s*', ': ', text)
23+
text = re.sub(r'\s*{\s*', ' { ', text)
24+
text = re.sub(r'\s+', ' ', text).strip()
2525
return text
2626

2727
actual_result = normalize_text(actual_result)

0 commit comments

Comments
 (0)