From 54994396a8f94dc51941e841dd0e02866e1c66a8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 5 Jan 2020 15:50:51 +0200 Subject: Fix: add identifier to name file --- blog/2020/01/05/data_files_for_tests.mdwn | 9 +++++++-- 1 file 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. -- cgit v1.2.1