This commit is contained in:
Dmitriy Ryajov 2023-12-22 17:17:15 -06:00
parent a8f4ad7f51
commit 2221605888
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
2 changed files with 4 additions and 5 deletions

View File

@ -15,7 +15,7 @@ import pkg/codex/utils
import ./helpers
asyncchecksuite "Erasure encode/decode":
suite "Erasure encode/decode":
const BlockSize = 1024'nb
const dataSetSize = BlockSize * 123 # weird geometry

View File

@ -4,10 +4,10 @@ import pkg/asynctest
import ./helpers
import codex/manifest/indexingstrategy
import pkg/codex/indexingstrategy
for offset in @[0, 1, 2, 100]:
checksuite "Indexing strategies (Offset: " & $offset & ")":
suite "Indexing strategies (Offset: " & $offset & ")":
let
firstIndex = 0 + offset
lastIndex = 12 + offset
@ -27,7 +27,7 @@ for offset in @[0, 1, 2, 100]:
stepped.getIndicies(1) == @[1, 4, 7, 10].mapIt(it + offset)
stepped.getIndicies(2) == @[2, 5, 8, 11].mapIt(it + offset)
checksuite "Indexing strategies":
suite "Indexing strategies":
let
linear = LinearIndexingStrategy.new(0, 10, 3)
stepped = SteppedIndexingStrategy.new(0, 10, 3)
@ -63,4 +63,3 @@ checksuite "Indexing strategies":
test "stepped - oob":
expect AssertionDefect:
discard stepped.getIndicies(3)