Skip to content

Commit

Permalink
add tests for code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossNox committed Jun 24, 2021
1 parent 294d90a commit 4932b8c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,24 @@ This is `$E = mc^2$` inline math.
This first math `$x^2$` in this line will render. This one `$z^3$` should as well.

Also within parentheses (`$x^2$`) and (`$z^3$`).

```bash
for (( counter=10; counter>0; counter-- ))
do
echo -n "$counter "
done
printf "\n"
```

Let's snake things up:

```python
def f(x, y):
return x + y + 1
```

And again:
```python
def f(x, y):
return x + y + 1
```
22 changes: 22 additions & 0 deletions tests/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,25 @@ This is :math:`E = mc^2` inline math.
This first math :math:`x^2` in this line will render. This one :math:`z^3` should as well.

Also within parentheses (:math:`x^2`) and (:math:`z^3`).

.. code-block:: bash
for (( counter=10; counter>0; counter-- ))
do
echo -n "$counter "
done
printf "\n"
Let's snake things up:

.. code-block:: python
def f(x, y):
return x + y + 1
And again:

.. code-block:: python
def f(x, y):
return x + y + 1

0 comments on commit 4932b8c

Please sign in to comment.