git.iko.soy/typeable/pandoc
on master help sign in
Add one more test
ff489a5Sidharth Kapur
tests/Tests/Readers/RST.hs+14
@@ -109,6 +109,20 @@ tests = [ "line block with blank line" =:
109 )
109 )
110 "def func(x):\n return y"
110 "def func(x):\n return y"
111 )
111 )
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+ )
112 , testGroup "literal / line / code blocks"
126 , testGroup "literal / line / code blocks"
113 [ "indented literal block" =: unlines
127 [ "indented literal block" =: unlines
114 [ "::"
128 [ "::"