added a test for 'nim doc'

This commit is contained in:
Andreas Rumpf 2018-09-07 13:13:35 +02:00 • committed by Araq
commit b017138c32
10 changed files with 2696 additions and 7 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
type
SomeType* = int
proc someType*(): SomeType =
## constructor.
SomeType(2)

View file

@ -0,0 +1,21 @@
import subdir / subdir_b / utils
## This is the top level module.
runnableExamples:
doAssert bar(3, 4) == 7
foo(1, 2)
template foo*(a, b: SomeType) =
## This does nothing
##
discard
proc bar*[T](a, b: T): T =
result = a + b
import std/macros
macro bar*(): untyped =
result = newStmtList()

View file