Skip to content

Commit 2eaba5f

Browse files
Restore latex tests
1 parent eee5ae6 commit 2eaba5f

File tree

9 files changed

+145
-8
lines changed

9 files changed

+145
-8
lines changed

data/fixtures/scopes/latex/comment.block.scope

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,13 @@ some comment
33
\fi
44
---
55

6+
[Content] =
7+
[Removal] =
8+
[Domain] = 0:0-2:3
9+
>--------
10+
0| \iffalse
11+
1| some comment
12+
2| \fi
13+
---<
14+
15+
[Insertion delimiter] = "\n"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
\LaTeX % some comment
22
---
33

4+
[Content] =
5+
[Domain] = 0:7-0:21
6+
>--------------<
7+
0| \LaTeX % some comment
8+
9+
[Removal] = 0:6-0:21
10+
>---------------<
11+
0| \LaTeX % some comment
12+
13+
[Leading delimiter] = 0:6-0:7
14+
>-<
15+
0| \LaTeX % some comment
16+
17+
[Insertion delimiter] = "\n"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
1 < 2
22
1 > 2
33
---
4+
[#1 Content] = 0:2-0:3
5+
>-<
6+
0| 1 < 2
47

8+
[#2 Content] = 1:2-1:3
9+
>-<
10+
1| 1 > 2

data/fixtures/scopes/latex/element.scope

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,13 @@
33
\end{quote}
44
---
55

6+
[Content] =
7+
[Removal] =
8+
[Domain] = 0:0-2:11
9+
>-------------
10+
0| \begin{quote}
11+
1| Hello
12+
2| \end{quote}
13+
-----------<
14+
15+
[Insertion delimiter] = "\n"

data/fixtures/scopes/latex/endTag.scope

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,21 @@
33
\end{quote}
44
---
55

6+
[Content] = 2:0-2:11
7+
>-----------<
8+
2| \end{quote}
9+
10+
[Removal] = 1:9-2:11
11+
>
12+
1| Hello
13+
2| \end{quote}
14+
-----------<
15+
16+
[Domain] = 0:0-2:11
17+
>-------------
18+
0| \begin{quote}
19+
1| Hello
20+
2| \end{quote}
21+
-----------<
22+
23+
[Insertion delimiter] = " "

data/fixtures/scopes/latex/environment.scope

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,13 @@
33
\end{quote}
44
---
55

6+
[Content] =
7+
[Removal] =
8+
[Domain] = 0:0-2:11
9+
>-------------
10+
0| \begin{quote}
11+
1| Hello
12+
2| \end{quote}
13+
-----------<
14+
15+
[Insertion delimiter] = "\n"

data/fixtures/scopes/latex/interior.element.scope

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,46 @@
33
\end{quote}
44
---
55

6-
[#1 Content] =
7-
[#1 Removal] = 0:7-0:12
8-
>-----<
6+
[#1 Content] = 1:4-1:9
7+
>-----<
8+
1| Hello
9+
10+
[#1 Removal] = 0:13-2:0
11+
>
912
0| \begin{quote}
13+
1| Hello
14+
2| \end{quote}
15+
<
1016

11-
[#1 Domain] = 0:6-0:13
12-
>-------<
17+
[#1 Domain] = 0:0-2:11
18+
>-------------
1319
0| \begin{quote}
20+
1| Hello
21+
2| \end{quote}
22+
-----------<
1423

1524
[#1 Insertion delimiter] = " "
1625

1726

1827
[#2 Content] =
19-
[#2 Removal] = 2:5-2:10
28+
[#2 Removal] = 0:7-0:12
29+
>-----<
30+
0| \begin{quote}
31+
32+
[#2 Domain] = 0:6-0:13
33+
>-------<
34+
0| \begin{quote}
35+
36+
[#2 Insertion delimiter] = " "
37+
38+
39+
[#3 Content] =
40+
[#3 Removal] = 2:5-2:10
2041
>-----<
2142
2| \end{quote}
2243

23-
[#2 Domain] = 2:4-2:11
44+
[#3 Domain] = 2:4-2:11
2445
>-------<
2546
2| \end{quote}
2647

27-
[#2 Insertion delimiter] = " "
48+
[#3 Insertion delimiter] = " "

data/fixtures/scopes/latex/startTag.scope

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,21 @@
33
\end{quote}
44
---
55

6+
[Content] = 0:0-0:13
7+
>-------------<
8+
0| \begin{quote}
9+
10+
[Removal] = 0:0-1:0
11+
>-------------
12+
0| \begin{quote}
13+
1| Hello
14+
<
15+
16+
[Domain] = 0:0-2:11
17+
>-------------
18+
0| \begin{quote}
19+
1| Hello
20+
2| \end{quote}
21+
-----------<
22+
23+
[Insertion delimiter] = " "

data/fixtures/scopes/latex/tags.scope

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,33 @@
33
\end{quote}
44
---
55

6+
[.1 Content] = 0:0-0:13
7+
>-------------<
8+
0| \begin{quote}
9+
10+
[.1 Removal] = 0:0-1:0
11+
>-------------
12+
0| \begin{quote}
13+
1| Hello
14+
<
15+
16+
[.1 Insertion delimiter] = " "
17+
18+
[.2 Content] = 2:0-2:11
19+
>-----------<
20+
2| \end{quote}
21+
22+
[.2 Removal] = 1:9-2:11
23+
>
24+
1| Hello
25+
2| \end{quote}
26+
-----------<
27+
28+
[.2 Insertion delimiter] = " "
29+
30+
[Domain] = 0:0-2:11
31+
>-------------
32+
0| \begin{quote}
33+
1| Hello
34+
2| \end{quote}
35+
-----------<

0 commit comments

Comments
 (0)