Skip to content

Commit

Permalink
0.4.6: the nimble gods demand it
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Jan 18, 2021
1 parent e31688f commit c072e44
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 17 deletions.
1 change: 0 additions & 1 deletion criterion
Submodule criterion deleted from 83a49e
1 change: 0 additions & 1 deletion flatty
Submodule flatty deleted from d39ed6
11 changes: 6 additions & 5 deletions frosty.nimble
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
version = "0.4.5"
version = "0.4.6"
author = "disruptek"
description = "serialize native Nim types to strings, streams, or sockets"
license = "MIT"

requires "https://github.com/narimiran/sorta < 1.0.0"
when defined(frostySorted):
requires "https://github.com/narimiran/sorta < 1.0.0"
when not defined(release):
requires "https://github.com/disruptek/criterion < 1.0.0"
requires "https://github.com/disruptek/testes > 1.0.0 & < 2.0.0"
requires "https://github.com/disruptek/balls > 2.0.0 & < 3.0.0"

task test, "run unit tests":
when defined(windows):
exec "testes.cmd"
exec "balls.cmd"
else:
exec "testes"
exec "balls"

task demo, "generate benchmark":
exec """demo docs/bench.svg "nim c --out=\$1 --gc:arc --define:danger tests/bench.nim""""
1 change: 0 additions & 1 deletion jason
Submodule jason deleted from c82120
1 change: 0 additions & 1 deletion skcbor
Submodule skcbor deleted from c0e13f
1 change: 0 additions & 1 deletion skflatbuffers
Submodule skflatbuffers deleted from e8e3fe
1 change: 0 additions & 1 deletion sorta
Submodule sorta deleted from be5745
1 change: 0 additions & 1 deletion testes
Submodule testes deleted from e6ddd9
6 changes: 3 additions & 3 deletions tests/test.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import std/random
import std/json
import std/options

import testes
import balls
import frosty

const
Expand Down Expand Up @@ -196,13 +196,13 @@ for mode in [fmWrite, fmRead]:
try:
case mode
of fmWrite:
testes:
suite "writes":
block:
## writing values to stream
freeze(vals, fh)
echo "file size in meg: ", fileSize(fn)
of fmRead:
testes:
suite "reads":
block:
## reading values from stream
thaw(fh, q)
Expand Down
4 changes: 2 additions & 2 deletions tests/tvariant.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import testes
import balls
import frosty

type
Expand All @@ -13,7 +13,7 @@ type
of Odd:
odd: bool

testes:
suite "object variants":
var s: string
block:
## write a case object
Expand Down

0 comments on commit c072e44

Please sign in to comment.