diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-01-05 15:50:51 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-01-05 15:50:51 +0200 |
commit | 54994396a8f94dc51941e841dd0e02866e1c66a8 (patch) | |
tree | 4ff585ca033a619bad8b38c183b73688b5c6fb84 | |
parent | 5ff020fac98fd06ee7de4b9d1b40b685dd91a15c (diff) | |
download | subplot.liw.fi-54994396a8f94dc51941e841dd0e02866e1c66a8.tar.gz |
Fix: add identifier to name file
-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. |