Skip to content

Commit 47c38aa

Browse files
committed
implement: Compare every layout with convert by spec now that specs reach nested items (t54)
1 parent b5db6da commit 47c38aa

9 files changed

Lines changed: 24 additions & 294 deletions

File tree

‎tests/fixtures/against_convert/PartPartSolSol/commands.json‎

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

‎tests/fixtures/against_convert/PartPartSolSol/differs.txt‎

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
question: Para depth=2
2+
part: ListItem depth=2
3+
solution:
4+
- ListItem depth=3
5+
- Div
6+
ignore: Header
7+
layout: PartPartSolSol

‎tests/fixtures/against_convert/PartSolPartSol/commands.json‎

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

‎tests/fixtures/against_convert/PartSolPartSol/differs.txt‎

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
question: Para depth=2
2+
part: Para depth=3
3+
solution: Div
4+
ignore: Header
5+
layout: PartSolPartSol

‎tests/fixtures/against_convert/PartsSepSol/commands.json‎

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
question:
2+
- Para depth=2
3+
- ListItem depth=1
4+
part: ListItem depth=2
5+
ignore: Header
6+
layout: PartsSepSol

‎tests/fixtures/against_convert/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ converted with `PartsOneSol`. A folder holding a `spec.yaml` fills the draft in
1111
that spec; a folder holding a `commands.json` applies each command in it in order. To
1212
cover another document, add a folder: no test names any of them.
1313

14+
The `spec.yaml` in `PartsSepSol`, `PartPartSolSol` and `PartSolPartSol` is a copy of the
15+
spec in the `fixtures/specs` folder of the same layout - `parts_sep_sol_nested`,
16+
`part_part_sol_sol_nested` and `part_sol_part_sol_nested` - each of which runs over the
17+
same `example.tex`. `docx` and `crlf` fill their drafts by commands, so that one run
18+
covers both ways of filling a draft in.
19+
1420
The line ranges in a `commands.json` are lines of the markdown pandoc writes, not of the
1521
document itself, as the ranges in `fixtures/sources` are. They were produced with
1622
**pandoc 3.9.0.2**.
@@ -42,12 +48,6 @@ A folder with no such file is a document the two routes say the same thing about
4248
Finding a difference the file does not list fails the test, and so does agreeing where it
4349
lists one: closing a ticket below means deleting the lines it names.
4450

45-
- **t53** - no draft command writes a `qN.pM.solution`, and no selector reaches inside the
46-
top-level `\item` that `PartPartSolSol/example.tex` and `PartSolPartSol/example.tex`
47-
nest each part's solution in, so those lines are marked ignore and the draft answers
48-
neither part. `in2lambda.draft.export` already reads such a field, and
49-
`fixtures/specs/part_part_sol_sol` shows a spec writing one where the source is not
50-
nested.
5151
- **Smart quotes** - pandoc's LaTeX reader writes `’` where its `commonmark_x` writer
5252
writes `'`, so convert uploads `aren’t` for `PartsOneSol/example.tex` and the draft
5353
uploads `aren't`.

0 commit comments

Comments
 (0)