megatest checks output and nimout
This commit is contained in:
parent
2a4c09ff88
commit
3859878db8
16 changed files with 218 additions and 202 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue