diff options
author | metagn <metagngn@gmail.com> | 2023-05-11 11:23:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 10:23:52 +0200 |
commit | 02be212daee78e3fca9f6b9524c4f3b221e552f3 (patch) | |
tree | 72ae4923ab997d476864d971cd5589143ed71dc8 /tests/nimdoc/trunnableexamples.nim | |
parent | 3a08e2e6ace20f086ba24360c7139852a75b93b2 (diff) | |
download | Nim-02be212daee78e3fca9f6b9524c4f3b221e552f3.tar.gz |
clean up SOME pending/xxx/issue link comments (#21826)
* clean up SOME pending/xxx/issue link comments * great
Diffstat (limited to 'tests/nimdoc/trunnableexamples.nim')
-rw-r--r-- | tests/nimdoc/trunnableexamples.nim | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/nimdoc/trunnableexamples.nim b/tests/nimdoc/trunnableexamples.nim index 1886ceeb3..57e725b2e 100644 --- a/tests/nimdoc/trunnableexamples.nim +++ b/tests/nimdoc/trunnableexamples.nim @@ -1,5 +1,5 @@ discard """ -cmd: "nim doc --doccmd:--hints:off --hints:off $file" +cmd: '''nim doc --doccmd:"-d:testFooExternal --hints:off" --hints:off $file''' action: "compile" nimoutFull: true nimout: ''' @@ -19,12 +19,6 @@ foo6 joinable: false """ -#[ -pending bug #18077, use instead: -cmd: "nim doc --doccmd:'-d:testFooExternal --hints:off' --hints:off $file" -and merge trunnableexamples2 back here -]# -{.define(testFooExternal).} proc fun*() = runnableExamples: @@ -212,3 +206,8 @@ snippet: doAssert defined(testFooExternal) ]## + +when true: # runnableExamples with rdoccmd + runnableExamples "-d:testFoo -d:testBar": + doAssert defined(testFoo) and defined(testBar) + doAssert defined(testFooExternal) |