typo: nonexistant => nonexistent (#17918)

* typo: nonexistant => nonexistent

* fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
This commit is contained in:
Timothee Cour 2021-05-01 15:26:41 -07:00 • committed by GitHub
commit 78e2d299df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 38 additions and 38 deletions

View file

@ -186,7 +186,7 @@ macro dumpToString*(x: untyped): string =
assert dumpToString(a + x) == "a + x: 1 + x = 11"
template square(x): untyped = x * x
assert dumpToString(square(x)) == "square(x): x * x = 100"
assert not compiles dumpToString(1 + nonexistant)
assert not compiles dumpToString(1 + nonexistent)
import std/strutils
assert "failedAssertImpl" in dumpToString(assert true) # example with a statement
result = newCall(bindSym"dumpToStringImpl")