diff options
-rw-r--r-- | blog/2020/01/05/data_files_for_tests.mdwn | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/blog/2020/01/05/data_files_for_tests.mdwn b/blog/2020/01/05/data_files_for_tests.mdwn index f786d26..f035b72 100644 --- a/blog/2020/01/05/data_files_for_tests.mdwn +++ b/blog/2020/01/05/data_files_for_tests.mdwn @@ -36,7 +36,7 @@ The syntax would look something like below, which is an example of a test data file containing a Subplot document. ~~~~~~~~markdown -~~~~~{.file .markdown numberLines} +~~~~~{.file #simple.md .markdown numberLines} --- title: Test scenario bindings: b.yaml @@ -57,4 +57,9 @@ then bar was done Pandoc allows attributes to fenced code blocks. Above, we declare the block is a file, in markdown, and its lines should be numbered. Subplot would require the `.file` attribute to recognize it as a file. -The rest are optional, but make Pandoc typeset the file nicely. +The `#simple.md` identifier is used to give the name of the file, so +it can be referred to from test scenarios. The generated test program +will know how to get the file contents using the identifier. + +The rest of the attributes are optional, but allow Pandoc to typeset +the file nicely. |