diff options
| author | Albert Krewinkel <[email protected]> | 2022-08-22 09:18:30 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-08-22 12:53:50 +0200 |
| commit | 1de40c62fc1220b689389e6c2eaa76f4936363fe (patch) | |
| tree | 8c6b32a83c91539645d847e0785dd1548c806069 /test | |
| parent | eb96defcc680047cbf02c32b3b09b94e0992c210 (diff) | |
Org writer: add code block identifier as `#+name` to src blocks.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Tests/Writers/Org.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Tests/Writers/Org.hs b/test/Tests/Writers/Org.hs index 4c79995d4..cc957fc6c 100644 --- a/test/Tests/Writers/Org.hs +++ b/test/Tests/Writers/Org.hs @@ -66,4 +66,15 @@ tests = , "- ☒ b" ] ] + + , testGroup "code blocks" + [ "identifier" + =: codeBlockWith ("abc", ["python"], []) "return True" + =?> T.unlines + [ "#+name: abc" + , "#+begin_src python" + , "return True" + , "#+end_src" + ] + ] ] |
