fix #6583, fix #14376, index+search now generated for all projects, many bug fixes with nim doc (#14324)
* refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
This commit is contained in:
parent
cbfe9325c5
commit
58282547f6
22 changed files with 294 additions and 161 deletions
|
|
@ -1,5 +1,3 @@
|
|||
# note: consider merging tests/assert/testhelper.nim here.
|
||||
|
||||
proc mismatch*[T](lhs: T, rhs: T): string =
|
||||
## Simplified version of `unittest.require` that satisfies a common use case,
|
||||
## while avoiding pulling too many dependencies. On failure, diagnostic
|
||||
|
|
@ -31,8 +29,8 @@ proc mismatch*[T](lhs: T, rhs: T): string =
|
|||
result.add "lhs[0..<i]:{" & replaceInvisible($lhs[
|
||||
0..<i]) & "}"
|
||||
|
||||
proc assertEquals*[T](lhs: T, rhs: T) =
|
||||
proc assertEquals*[T](lhs: T, rhs: T, msg = "") =
|
||||
when false: # can be useful for debugging to see all that's fed to this.
|
||||
echo "----" & $lhs
|
||||
if lhs!=rhs:
|
||||
doAssert false, mismatch(lhs, rhs)
|
||||
doAssert false, mismatch(lhs, rhs) & "\n" & msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue