summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSidharth Kapur <sidharthkapur1@gmail.com>2016-05-01 22:36:19 -0500
committerSidharth Kapur <sidharthkapur1@gmail.com>2016-05-01 22:36:19 -0500
commitff489a59f4158a95fb01d1164b5fd2b865586e73 (patch)
tree238bb47bc695bfd59a3c92594dc34bf9ad22aa30
parentd7bc8c06324a0ca0ce32ece35a5dc157dadc4187 (diff)
Add one more test
-rw-r--r--tests/Tests/Readers/RST.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Tests/Readers/RST.hs b/tests/Tests/Readers/RST.hs
index 0fc8ecc32..622f5e48b 100644
--- a/tests/Tests/Readers/RST.hs
+++ b/tests/Tests/Readers/RST.hs
@@ -109,6 +109,20 @@ tests = [ "line block with blank line" =:
)
"def func(x):\n return y"
)
+ , "Code directive with number-lines, no line specified" =: unlines
+ [ ".. code::python"
+ , " :number-lines: "
+ , ""
+ , " def func(x):"
+ , " return y"
+ ] =?>
+ ( doc $ codeBlockWith
+ ( ""
+ , ["sourceCode", "python", "numberLines"]
+ , [ ("startFrom", "") ]
+ )
+ "def func(x):\n return y"
+ )
, testGroup "literal / line / code blocks"
[ "indented literal block" =: unlines
[ "::"