Skip to content

Commit

Permalink
fixup test
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Jun 2, 2020
1 parent e3a9ecd commit 947d2f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test.nim
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ template timer(name: string; body: untyped): untyped =
echo e.msg
echo name, " failed after ", cpuTime() - clock

const objects = 50_000
const objects = 7_500
echo "will test against " & $objects & " units"

when false: #defined(danger):
when defined(danger):
import std/uri

import criterion
Expand Down Expand Up @@ -183,7 +183,7 @@ else: # ^^ danger vv no danger
if not fileExists(fn):
var fh = openFileStream(fn, fmWrite)
timer "write some goats":
freeze(fh, vals)
freeze(vals, fh)
close fh
echo "file size in meg: ", fileSize(fn)
else:
Expand Down

0 comments on commit 947d2f8

Please sign in to comment.