Skip to content

Commit 376b5a3

Browse files
Pavel.PrudkyPavel.Prudky
Pavel.Prudky
authored and
Pavel.Prudky
committed
- aligning unit tests for diff module
1 parent 8d7e8ae commit 376b5a3

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

‎tests/test_unit_diff.py

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,29 @@ class TestDiff:
1919
),
2020
("", "this is some section.yeah", [["this", "is", "some", "section.yeah"]]),
2121
(
22-
"<section=first>",
23-
"<section=second>this is some section.yeah",
22+
"",
23+
"this is some section.yeah",
2424
[
25-
["<section=first>"],
26-
["<section=second>this", "is", "some", "section.yeah"],
25+
["this", "is", "some", "section.yeah"],
2726
],
2827
),
2928
(
30-
"<section=first> some section text",
29+
"some section text",
3130
"this is some section.yeah",
3231
[
33-
["<section=first>"],
3432
["this", "is"],
3533
["some"],
3634
["section", "text"],
3735
["section.yeah"],
3836
],
3937
),
4038
(
41-
"<section=first> some section text",
42-
"<section=first> another text <section=second>this is some section.yeah",
39+
"some section text",
40+
"another text",
4341
[
44-
["<section=first>"],
45-
["another", "text", "<section=second>this", "is"],
46-
["some"],
47-
["section", "text"],
48-
["section.yeah"],
42+
["some", "section"],
43+
["another"],
44+
["text"],
4945
],
5046
),
5147
],
@@ -74,24 +70,24 @@ def test__replace_line_endings(self):
7470
("is", "this some section.yeah", "is this some section.yeah"),
7571
("", "this is some section.yeah", "this is some section.yeah"),
7672
(
77-
"<section=first>",
78-
"<section=second>this is some section.yeah",
79-
"<section=first> <section=second>this is some section.yeah",
73+
"",
74+
"this is some section.yeah",
75+
"this is some section.yeah",
8076
),
8177
(
82-
"<section=first> some section text",
78+
"some section text",
8379
"this is some section.yeah",
84-
"<section=first> this is some section text section.yeah",
80+
"this is some section text section.yeah",
8581
),
8682
(
87-
"<section=first> some section text",
88-
"<section=first> another text <section=second>this is some section.yeah",
89-
"<section=first> another text <section=second>this is some section text section.yeah",
83+
"some section text",
84+
"another text this is some section.yeah",
85+
"another text this is some section text section.yeah",
9086
),
9187
(
92-
"<section=first> some \n section text",
88+
"some \n section text",
9389
"this is some section.yeah",
94-
"""<section=first> this is some
90+
"""this is some
9591
section text section.yeah""",
9692
),
9793
],

0 commit comments

Comments
 (0)