aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Org
diff options
context:
space:
mode:
authorleungbk <bkleung89@gmail.com>2018-09-27 15:04:56 -0700
committerAlbert Krewinkel <albert+github@zeitkraut.de>2018-09-28 14:05:14 +0200
commit4f9ab7e03268e576d86e697f7110869434d08557 (patch)
tree75a505afe73184486dec342eb00c82704144428e /test/Tests/Readers/Org
parentc07b9aebc2bc7e95da7a6feab26ce14e2e5f4a0e (diff)
downloadpandoc-4f9ab7e03268e576d86e697f7110869434d08557.tar.gz
Parse empty argument array in inline src blocks.
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
Diffstat (limited to 'test/Tests/Readers/Org')
-rw-r--r--test/Tests/Readers/Org/Inline.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Tests/Readers/Org/Inline.hs b/test/Tests/Readers/Org/Inline.hs
index 7dfa001e3..9cfcda79f 100644
--- a/test/Tests/Readers/Org/Inline.hs
+++ b/test/Tests/Readers/Org/Inline.hs
@@ -280,6 +280,13 @@ tests =
)
"echo 'Hello, World'")
+ , "Inline code block with a blank argument array" =:
+ "src_sh[]{echo 'Hello, World'}" =?>
+ para (codeWith ( ""
+ , [ "bash" ]
+ , [ ("org-language", "sh") ])
+ "echo 'Hello, World'")
+
, "Inline code block with toggle" =:
"src_sh[:toggle]{echo $HOME}" =?>
para (codeWith ( ""