run runnableExamples in the module scope (#11732) [feature]
This commit is contained in:
parent
30f2cec671
commit
8c93c692b9
4 changed files with 81 additions and 17 deletions
|
|
@ -198,8 +198,8 @@ proc initUri*(): Uri =
|
|||
## **See also:**
|
||||
## * `Uri type <#Uri>`_ for available fields in the URI type
|
||||
runnableExamples:
|
||||
var uri: Uri
|
||||
assert initUri() == uri
|
||||
var uri2: Uri
|
||||
assert initUri() == uri2
|
||||
result = Uri(scheme: "", username: "", password: "", hostname: "", port: "",
|
||||
path: "", query: "", anchor: "")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue