mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 23:23:10 +00:00
test
This commit is contained in:
parent
6557e59dc4
commit
fe9b6ebc67
@ -54,7 +54,7 @@ proc runDestroyOnReleaseTest() =
|
||||
a.decr()
|
||||
a.release()
|
||||
|
||||
|
||||
proc testSuite() =
|
||||
suite "Share buffer test":
|
||||
|
||||
setup:
|
||||
@ -63,7 +63,7 @@ suite "Share buffer test":
|
||||
let a3 {.used.} = a2
|
||||
|
||||
test "basics":
|
||||
echo "a1: ", $a1
|
||||
# echo "a1: ", $a1
|
||||
check $a1 == "nil\"\""
|
||||
check a1.isNil
|
||||
# check $a2 == "(value: 0, cnt: 2)"
|
||||
@ -125,3 +125,8 @@ suite "Share buffer test":
|
||||
|
||||
# TODO: add async test
|
||||
|
||||
when isMainModule:
|
||||
for i in 1..10_000:
|
||||
testSuite()
|
||||
else:
|
||||
testSuite()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user