Improve tests: Add pretty_org fixtures to allow testing pretty printing
Until now we expected the .org file to print back to itself - we can't do that when the input is not pretty printed already - with the introduction of blocks with unindented content that will be the case.
This commit is contained in:
parent
c26d39284c
commit
ade2a1c875
14 changed files with 356 additions and 8 deletions
6
etc/generate-fixtures
Executable file
6
etc/generate-fixtures
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
for org_file in org/testdata/*.org; do
|
||||
./go-org $org_file html > org/testdata/$(basename $org_file .org).html
|
||||
./go-org $org_file org > org/testdata/$(basename $org_file .org).pretty_org
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue