From ff489a59f4158a95fb01d1164b5fd2b865586e73 Mon Sep 17 00:00:00 2001 From: Sidharth Kapur Date: Sun, 1 May 2016 22:36:19 -0500 Subject: Add one more test --- tests/Tests/Readers/RST.hs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/Tests/Readers/RST.hs') 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 [ "::" -- cgit v1.2.3