@@ -19,33 +19,29 @@ class TestDiff:
19
19
),
20
20
("" , "this is some section.yeah" , [["this" , "is" , "some" , "section.yeah" ]]),
21
21
(
22
- "<section=first> " ,
23
- "<section=second> this is some section.yeah" ,
22
+ "" ,
23
+ "this is some section.yeah" ,
24
24
[
25
- ["<section=first>" ],
26
- ["<section=second>this" , "is" , "some" , "section.yeah" ],
25
+ ["this" , "is" , "some" , "section.yeah" ],
27
26
],
28
27
),
29
28
(
30
- "<section=first> some section text" ,
29
+ "some section text" ,
31
30
"this is some section.yeah" ,
32
31
[
33
- ["<section=first>" ],
34
32
["this" , "is" ],
35
33
["some" ],
36
34
["section" , "text" ],
37
35
["section.yeah" ],
38
36
],
39
37
),
40
38
(
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" ,
43
41
[
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" ],
49
45
],
50
46
),
51
47
],
@@ -74,24 +70,24 @@ def test__replace_line_endings(self):
74
70
("is" , "this some section.yeah" , "is this some section.yeah" ),
75
71
("" , "this is some section.yeah" , "this is some section.yeah" ),
76
72
(
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" ,
80
76
),
81
77
(
82
- "<section=first> some section text" ,
78
+ "some section text" ,
83
79
"this is some section.yeah" ,
84
- "<section=first> this is some section text section.yeah" ,
80
+ "this is some section text section.yeah" ,
85
81
),
86
82
(
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" ,
90
86
),
91
87
(
92
- "<section=first> some \n section text" ,
88
+ "some \n section text" ,
93
89
"this is some section.yeah" ,
94
- """<section=first> this is some
90
+ """this is some
95
91
section text section.yeah""" ,
96
92
),
97
93
],
0 commit comments