Fix warning about sets.testModule() not used.
This commit is contained in:
parent
a83286192f
commit
e41a3e9661
1 changed files with 153 additions and 152 deletions
|
|
@ -798,6 +798,7 @@ proc `==`*[A](s, t: OrderedSet[A]): bool =
|
||||||
g = nxg
|
g = nxg
|
||||||
result = compared == s.counter
|
result = compared == s.counter
|
||||||
|
|
||||||
|
when isMainModule and not defined(release):
|
||||||
proc testModule() =
|
proc testModule() =
|
||||||
## Internal micro test to validate docstrings and such.
|
## Internal micro test to validate docstrings and such.
|
||||||
block isValidTest:
|
block isValidTest:
|
||||||
|
|
@ -971,4 +972,4 @@ proc testModule() =
|
||||||
|
|
||||||
echo "Micro tests run successfully."
|
echo "Micro tests run successfully."
|
||||||
|
|
||||||
when isMainModule and not defined(release): testModule()
|
testModule()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue