mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
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:
@@ -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)
|
||||
|
||||
]##
|
||||
|
||||
Reference in New Issue
Block a user