diff options
author | Jeppe Pihl <jpihl08@gmail.com> | 2014-10-04 17:49:37 +0200 |
---|---|---|
committer | Jeppe Pihl <jpihl08@gmail.com> | 2014-10-04 17:49:37 +0200 |
commit | 376f62970ff7b9276c77ef74e915bced88f5a212 (patch) | |
tree | 590a753999b5cfc4771dc03ba7d46bc5f6e1daca | |
parent | 7a3783f08185f7dbe5ab94ae43f9a510acb996e2 (diff) | |
download | sphinx-376f62970ff7b9276c77ef74e915bced88f5a212.tar.gz |
added test .rst files
-rw-r--r-- | tests/roots/test-directive-code/lineno_match.rst | 17 | ||||
-rw-r--r-- | tests/roots/test-directive-code/lineno_start.rst | 6 | ||||
-rw-r--r-- | tests/roots/test-directive-code/linenos.rst | 6 |
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/roots/test-directive-code/lineno_match.rst b/tests/roots/test-directive-code/lineno_match.rst new file mode 100644 index 00000000..f1e9cf15 --- /dev/null +++ b/tests/roots/test-directive-code/lineno_match.rst @@ -0,0 +1,17 @@ +Literal Includes with Line Numbers Matching +=========================================== + +.. literalinclude:: literal.inc + :language: python + :pyobject: Bar + :lineno-match: + +.. literalinclude:: literal.inc + :language: python + :lines: 6,7,8-9 + :lineno-match: + +.. literalinclude:: literal.inc + :language: python + :start-after: pass + :lineno-match: diff --git a/tests/roots/test-directive-code/lineno_start.rst b/tests/roots/test-directive-code/lineno_start.rst new file mode 100644 index 00000000..1beaabbf --- /dev/null +++ b/tests/roots/test-directive-code/lineno_start.rst @@ -0,0 +1,6 @@ +Literal Includes with Line Numbers Starting from 200 +==================================================== + +.. literalinclude:: literal.inc + :language: python + :lineno-start: 200 diff --git a/tests/roots/test-directive-code/linenos.rst b/tests/roots/test-directive-code/linenos.rst new file mode 100644 index 00000000..2f64498d --- /dev/null +++ b/tests/roots/test-directive-code/linenos.rst @@ -0,0 +1,6 @@ +Literal Includes with Line Numbers +================================== + +.. literalinclude:: literal.inc + :language: python + :linenos: |