summary refs log tree commit diff stats
path: root/tests/nimdoc/trunnableexamples.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-02-26 07:05:20 -0800
committerGitHub <noreply@github.com>2021-02-26 16:05:20 +0100
commitff3ace2232ee32381ceaa50edb29f64dbd2289ea (patch)
tree08865849a356a13199d8c05dfd7d997bce138eef /tests/nimdoc/trunnableexamples.nim
parentc7d6e4c6a6078075433828ccec6a7f4351d6a096 (diff)
downloadNim-ff3ace2232ee32381ceaa50edb29f64dbd2289ea.tar.gz
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
Diffstat (limited to 'tests/nimdoc/trunnableexamples.nim')
-rw-r--r--tests/nimdoc/trunnableexamples.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/nimdoc/trunnableexamples.nim b/tests/nimdoc/trunnableexamples.nim
index 6232011cb..9e56e9143 100644
--- a/tests/nimdoc/trunnableexamples.nim
+++ b/tests/nimdoc/trunnableexamples.nim
@@ -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)
+
+]##