Merge pull request #2461 from ReneSac/devel

Fix warning about sets.testModule() not used.
This commit is contained in:
reactormonk 2015-04-05 03:09:44 +05:00
commit 74fd43d709

View file

@ -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()