diff --git a/tests/fixtures/against_convert/PartPartSolSol/commands.json b/tests/fixtures/against_convert/PartPartSolSol/commands.json deleted file mode 100644 index 55a0ab5..0000000 --- a/tests/fixtures/against_convert/PartPartSolSol/commands.json +++ /dev/null @@ -1,100 +0,0 @@ -[ - { - "args": { - "block": "b1" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "at": 9, - "block": "b2" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "text": "s3:4" - }, - "by": "tests", - "command": "question add" - }, - { - "args": { - "question": "q1", - "text": "s5:6" - }, - "by": "tests", - "command": "part add" - }, - { - "args": { - "question": "q1", - "text": "s7:8" - }, - "by": "tests", - "command": "part add" - }, - { - "args": { - "block": "b2b" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "at": 17, - "block": "b3" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "text": "b3a" - }, - "by": "tests", - "command": "question add" - }, - { - "args": { - "at": 18, - "block": "b3b" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "block": "b3ba" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "at": 19, - "block": "b3bb" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "question": "q2", - "text": "b3bba" - }, - "by": "tests", - "command": "question solution" - }, - { - "args": { - "block": "b3bbb" - }, - "by": "tests", - "command": "mark ignore" - } -] diff --git a/tests/fixtures/against_convert/PartPartSolSol/differs.txt b/tests/fixtures/against_convert/PartPartSolSol/differs.txt deleted file mode 100644 index 7b0c31a..0000000 --- a/tests/fixtures/against_convert/PartPartSolSol/differs.txt +++ /dev/null @@ -1,2 +0,0 @@ -Question 1 "", part (a), worked solution: the draft says '' and convert says '$1+1=2$' # t53: no command writes qN.pM.solution -Question 1 "", part (b), worked solution: the draft says '' and convert says '$2+2=4$' # t53: no command writes qN.pM.solution diff --git a/tests/fixtures/against_convert/PartPartSolSol/spec.yaml b/tests/fixtures/against_convert/PartPartSolSol/spec.yaml new file mode 100644 index 0000000..7de99cb --- /dev/null +++ b/tests/fixtures/against_convert/PartPartSolSol/spec.yaml @@ -0,0 +1,7 @@ +question: Para depth=2 +part: ListItem depth=2 +solution: + - ListItem depth=3 + - Div +ignore: Header +layout: PartPartSolSol diff --git a/tests/fixtures/against_convert/PartSolPartSol/commands.json b/tests/fixtures/against_convert/PartSolPartSol/commands.json deleted file mode 100644 index e79f14f..0000000 --- a/tests/fixtures/against_convert/PartSolPartSol/commands.json +++ /dev/null @@ -1,123 +0,0 @@ -[ - { - "args": { - "block": "b1" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "at": 7, - "block": "b2" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "at": 11, - "block": "b2b" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "at": 13, - "block": "b2bb" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "text": "s3:4" - }, - "by": "tests", - "command": "question add" - }, - { - "args": { - "question": "q1", - "text": "s5:6" - }, - "by": "tests", - "command": "part add" - }, - { - "args": { - "block": "b2ba" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "question": "q1", - "text": "b2bba" - }, - "by": "tests", - "command": "part add" - }, - { - "args": { - "block": "b2bbb" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "at": 19, - "block": "b3" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "text": "b3a" - }, - "by": "tests", - "command": "question add" - }, - { - "args": { - "at": 20, - "block": "b3b" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "block": "b3ba" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "at": 21, - "block": "b3bb" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "question": "q2", - "text": "b3bba" - }, - "by": "tests", - "command": "question solution" - }, - { - "args": { - "block": "b3bbb" - }, - "by": "tests", - "command": "mark ignore" - } -] diff --git a/tests/fixtures/against_convert/PartSolPartSol/differs.txt b/tests/fixtures/against_convert/PartSolPartSol/differs.txt deleted file mode 100644 index 7788313..0000000 --- a/tests/fixtures/against_convert/PartSolPartSol/differs.txt +++ /dev/null @@ -1,2 +0,0 @@ -Question 1 "", part (a), worked solution: the draft says '' and convert says '$1+1 = 2$' # t53: no command writes qN.pM.solution -Question 1 "", part (b), worked solution: the draft says '' and convert says '$2+2=4$' # t53: no command writes qN.pM.solution diff --git a/tests/fixtures/against_convert/PartSolPartSol/spec.yaml b/tests/fixtures/against_convert/PartSolPartSol/spec.yaml new file mode 100644 index 0000000..c7669ef --- /dev/null +++ b/tests/fixtures/against_convert/PartSolPartSol/spec.yaml @@ -0,0 +1,5 @@ +question: Para depth=2 +part: Para depth=3 +solution: Div +ignore: Header +layout: PartSolPartSol diff --git a/tests/fixtures/against_convert/PartsSepSol/commands.json b/tests/fixtures/against_convert/PartsSepSol/commands.json deleted file mode 100644 index 0a2c84c..0000000 --- a/tests/fixtures/against_convert/PartsSepSol/commands.json +++ /dev/null @@ -1,61 +0,0 @@ -[ - { - "args": { - "block": "b1" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "text": "s3:4" - }, - "by": "tests", - "command": "question add" - }, - { - "args": { - "question": "q1", - "text": "s5:8" - }, - "by": "tests", - "command": "part add" - }, - { - "args": { - "question": "q1", - "text": "s9:10" - }, - "by": "tests", - "command": "part add" - }, - { - "args": { - "at": 13, - "block": "b3" - }, - "by": "tests", - "command": "split block" - }, - { - "args": { - "text": "b3a" - }, - "by": "tests", - "command": "question add" - }, - { - "args": { - "block": "b3b" - }, - "by": "tests", - "command": "mark ignore" - }, - { - "args": { - "text": "b4" - }, - "by": "tests", - "command": "question add" - } -] diff --git a/tests/fixtures/against_convert/PartsSepSol/spec.yaml b/tests/fixtures/against_convert/PartsSepSol/spec.yaml new file mode 100644 index 0000000..156179f --- /dev/null +++ b/tests/fixtures/against_convert/PartsSepSol/spec.yaml @@ -0,0 +1,6 @@ +question: + - Para depth=2 + - ListItem depth=1 +part: ListItem depth=2 +ignore: Header +layout: PartsSepSol diff --git a/tests/fixtures/against_convert/README.md b/tests/fixtures/against_convert/README.md index 22abd76..184b986 100644 --- a/tests/fixtures/against_convert/README.md +++ b/tests/fixtures/against_convert/README.md @@ -11,6 +11,12 @@ converted with `PartsOneSol`. A folder holding a `spec.yaml` fills the draft in that spec; a folder holding a `commands.json` applies each command in it in order. To cover another document, add a folder: no test names any of them. +The `spec.yaml` in `PartsSepSol`, `PartPartSolSol` and `PartSolPartSol` is a copy of the +spec in the `fixtures/specs` folder of the same layout - `parts_sep_sol_nested`, +`part_part_sol_sol_nested` and `part_sol_part_sol_nested` - each of which runs over the +same `example.tex`. `docx` and `crlf` fill their drafts by commands, so that one run +covers both ways of filling a draft in. + The line ranges in a `commands.json` are lines of the markdown pandoc writes, not of the document itself, as the ranges in `fixtures/sources` are. They were produced with **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 Finding a difference the file does not list fails the test, and so does agreeing where it lists one: closing a ticket below means deleting the lines it names. -- **t53** - no draft command writes a `qN.pM.solution`, and no selector reaches inside the - top-level `\item` that `PartPartSolSol/example.tex` and `PartSolPartSol/example.tex` - nest each part's solution in, so those lines are marked ignore and the draft answers - neither part. `in2lambda.draft.export` already reads such a field, and - `fixtures/specs/part_part_sol_sol` shows a spec writing one where the source is not - nested. - **Smart quotes** - pandoc's LaTeX reader writes `’` where its `commonmark_x` writer writes `'`, so convert uploads `aren’t` for `PartsOneSol/example.tex` and the draft uploads `aren't`.