summary refs log tree commit diff stats
path: root/tests/nimdoc/trunnableexamples.nim
diff options
context:
space:
mode:
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)
+
+]##