Skip to content

Commit e52847c

Browse files
committed
refactor: sparsity generators
1 parent e647418 commit e52847c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/GraphBLAS-sharp.Tests/Generators.fs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ module Generators =
3636
}
3737

3838
let genericSparseGenerator zero valuesGen handler =
39-
let maxSparsity = 100
39+
let maxSparsity = 10
40+
let upperBound = 100
4041
let sparsityGen = Gen.choose (1, maxSparsity)
4142

4243
let genWithSparsity sparseValuesGenProvider =
@@ -55,7 +56,7 @@ module Generators =
5556
genWithSparsity
5657
<| fun sparsity ->
5758
[ (sparsity, valuesGen)
58-
(maxSparsity - sparsity, Gen.constant zero) ]
59+
(upperBound - sparsity, Gen.constant zero) ]
5960
|> Gen.frequency
6061
|> handler
6162

0 commit comments

Comments
 (0)