summary refs log tree commit diff stats
path: root/tests/concepts
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-12-05 00:42:56 +0100
committerAraq <rumpf_a@web.de>2018-12-11 21:23:22 +0100
commit3859878db8e6da15d3513c931e0d811dcf03b250 (patch)
tree79aab58631e0e22adba353143e2fda3f7370c506 /tests/concepts
parent2a4c09ff8887350ec3fa283fe8d562e71b68406b (diff)
downloadNim-3859878db8e6da15d3513c931e0d811dcf03b250.tar.gz
megatest checks output and nimout
Diffstat (limited to 'tests/concepts')
-rw-r--r--tests/concepts/trandomvars.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/concepts/trandomvars.nim b/tests/concepts/trandomvars.nim
index db41aa901..1f04b9ecf 100644
--- a/tests/concepts/trandomvars.nim
+++ b/tests/concepts/trandomvars.nim
@@ -41,7 +41,8 @@ proc lift1[A, B](f: proc(a: A): B, r: RandomVar[A]): ClosureVar[B] =
 
   return inner
 
-when isMainModule:
+
+proc main() =
   proc sq(x: float): float = x * x
 
   let
@@ -59,3 +60,4 @@ when isMainModule:
   echo rng.sample(u)
   echo rng.sample(t)
 
+main()