* fix code-block test bugs: fix #17183, fix https://github.com/timotheecour/Nim/issues/620

* cleanup
This commit is contained in:
Timothee Cour
2021-02-26 07:05:20 -08:00
committed by GitHub
parent c7d6e4c6a6
commit ff3ace2232
3 changed files with 21 additions and 2 deletions

View File

@@ -120,3 +120,13 @@ runnableExamples:
# note: there are yet other examples where putting runnableExamples at module
# scope is needed, for example when using an `include` before an `import`, etc.
##[
snippet:
.. code-block:: Nim
:test:
doAssert defined(testFooExternal)
]##