diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb0a0b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,142 @@ +#vim session files +*.vims + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ diff --git a/tests/result/dir/collatz.py b/tests/result/dir/collatz.py new file mode 100755 index 0000000..073528a --- /dev/null +++ b/tests/result/dir/collatz.py @@ -0,0 +1,16 @@ + +def nextInSequence(number): + if isinstance(number, int): + if number % 2 == 0: + return number // 2 + else: + return 3*number+1 + else: + raise TypeError('input must be int!') + +def seqenceLength(number): + length = 0 + while number != 1: + number = nextInSequence(number) + length += 1 + return length diff --git a/tests/result/dir/subdir/linked.html b/tests/result/dir/subdir/linked.html new file mode 100644 index 0000000..510eba5 --- /dev/null +++ b/tests/result/dir/subdir/linked.html @@ -0,0 +1,466 @@ + + +
+ + + + + ++ + | ++Test the links in this page! + | +
Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Phasellus mi tellus, suscipit in dolor nec, faucibus aliquam nulla. +Mauris gravida, felis commodo molestie tincidunt, sem erat varius lorem, nec lobortis eros sem ut augue. +Donec suscipit tristique imperdiet. +Sed maximus est ultrices urna imperdiet, vitae facilisis eros posuere. +Quisque a mollis mauris. +Pellentesque fermentum, libero sed sollicitudin interdum, dolor nunc euismod purus, et laoreet tellus augue vitae turpis. +Pellentesque condimentum elit quis semper tincidunt. +Nullam consectetur euismod accumsan. +In dictum nibh ut iaculis euismod. +Phasellus ut nibh non ipsum volutpat cursus. +Sed eleifend, enim vitae ultrices auctor, dolor ipsum molestie dui, id dignissim massa neque a mauris.
+bold test
+italics test
+'monospace test'
+'monospace bold test'
+'monospace italic test'
+*italic bold test*
+'all three test'
+*escaped bold test*
+underline test using html passthrough test
+*escaped bold test with plus*
+→ ⇒ ← ⇐
+Lorum
+ipsum
+dolor
+sit
+amet
+consectetur
+Lorum
+ipsum
+dolor
+sit
+amet
+consectetur
+Lorum
+ipsum
+dolor
+sit
+amet
+consectetur
+Lorum
+ipsum
+dolor
+sit
+amet
+consectetur
+adipiscing
+elit
++test + | +
+ to make sure software works correctly + |
+
+git + | +
+ a gift from the machine spirits + |
+
+printers + | +
+ the greatest evil to ever befall IT. + |
+
Lets go back to the list tests or to the tables
+def nextInSequence(number):
+ if isinstance(number, int):
+ if number % 2 == 0:
+ return number // 2
+ else:
+ return 3*number+1
+ else:
+ raise TypeError('input must be int!')
+
+def seqenceLength(number):
+ length = 0
+ while number != 1:
+ number = nextInSequence(number)
+ length += 1
+ return length
+Name | +Group | +Description | +
---|---|---|
Firefox |
+Web Browser |
+
+
+Mozilla Firefox is an open-source web browser. +It’s designed for: +
+
|
+
Ruby |
+Programming Language |
+A programmer’s best friend. |
+
Fusce maximus nec magna eu ultricies. +Fusce quis tellus vitae arcu facilisis lobortis. +Donec id erat at enim porta placerat in vitae sapien. +Duis justo arcu, hendrerit nec nulla eu, dictum dapibus ipsum. +Sed fermentum id elit eget fringilla. +Suspendisse volutpat imperdiet justo, ut efficitur odio maximus et. +Nunc interdum sollicitudin eros sit amet convallis. +Praesent volutpat tempus metus id tincidunt. +Proin aliquet justo a fermentum consectetur. +Nunc scelerisque, nisi id scelerisque dictum, nibh lectus ultrices nunc, quis ultricies erat velit sit amet urna. +Maecenas orci felis, volutpat at bibendum ut, mattis eu justo.
+example of _listing block_ +with verbatim line break+
example block +with line break
+_literal_ block +with line break+
++++quote block +with line break
+
+ + | +
+
+
+This is an example of an admonition block. +
+
+Unlike an admonition paragraph, it may contain any AsciiDoc content. +The style can be any one of the admonition labels: +
+
+
|
+