fix code-block test bugs: fix #17183, fix https://github.com/timotheecour/Nim/issues/620 (#17184)
* fix code-block test bugs: fix #17183, fix https://github.com/timotheecour/Nim/issues/620 * cleanup
This commit is contained in:
parent
c7d6e4c6a6
commit
ff3ace2232
3 changed files with 21 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
]##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue