aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/rst-reader.native2
-rw-r--r--tests/rst-reader.rst7
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index 8848fa111..294be318c 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -43,6 +43,8 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str
, CodeBlock ("",[],[]) "this code block is indented by one tab"
, Para [Str "And",Str ":"]
, CodeBlock ("",[],[]) "this block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
+, Para [Str "And",Str ":"]
+, CodeBlock ("",["sourceCode","python"],[]) "def my_function(x):\n return x + 1"
, Header 1 [Str "Lists"]
, Header 2 [Str "Unordered"]
, Para [Str "Asterisks",Space,Str "tight",Str ":"]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index 2cc99d294..676698430 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -101,6 +101,13 @@ And::
These should not be escaped: \$ \\ \> \[ \{
+And:
+
+.. code-block:: python
+
+ def my_function(x):
+ return x + 1
+
Lists
=====