Skip to content

Commit 4a784e4

Browse files
authored
Fix tests (#807)
1 parent 00fb5b7 commit 4a784e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/wsampling.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ import StatsBase: direct_sample!, alias_sample!
3737
n = 10^6
3838
wv = weights([0.2, 0.8, 0.4, 0.6])
3939

40-
for wv in [
40+
for wv in (
4141
weights([0.2, 0.8, 0.4, 0.6]),
4242
weights([2, 8, 4, 6]),
4343
weights(Float32[0.2, 0.8, 0.4, 0.6]),
4444
Weights(Float32[0.2, 0.8, 0.4, 0.6], 2),
4545
Weights([2, 8, 4, 6], 20.0),
46-
]
46+
)
4747
a = direct_sample!(4:7, wv, zeros(Int, n, 3))
4848
check_wsample_wrep(a, (4, 7), wv, 5.0e-3; ordered=false)
4949
test_rng_use(direct_sample!, 4:7, wv, zeros(Int, 100))

0 commit comments

Comments
 (0)