git.iko.soy/typeable/pandoc
on master help sign in
Add one more test
commitff489a59f4158a95fb01d1164b5fd2b865586e73 authorSidharth Kapur <sidharthkapur1@gmail.com> dateSun 1 May 2016, 22:36 (11 years ago) parentd7bc8c0
1 file changed+14
tests/Tests/Readers/RST.hs+14
tests/Tests/Readers/RST.hs+14
@@ -109,6 +109,20 @@ tests = [ "line block with blank line" =:
109109 )
110110 "def func(x):\n return y"
111111 )
112+ , "Code directive with number-lines, no line specified" =: unlines
113+ [ ".. code::python"
114+ , " :number-lines: "
115+ , ""
116+ , " def func(x):"
117+ , " return y"
118+ ] =?>
119+ ( doc $ codeBlockWith
120+ ( ""
121+ , ["sourceCode", "python", "numberLines"]
122+ , [ ("startFrom", "") ]
123+ )
124+ "def func(x):\n return y"
125+ )
112126 , testGroup "literal / line / code blocks"
113127 [ "indented literal block" =: unlines
114128 [ "::"