Commit 86ba7978 authored by Dahua Lin's avatar Dahua Lin

Change { ... } to Any[ ... ]

parent ce6c0c6d
......@@ -28,7 +28,7 @@ distlist = [
Binomial(100, 0.9)]
if length(ARGS) > 0
newdistlist = {}
newdistlist = Any[]
for arg in ARGS
a = eval(parse(arg))
if isa(a, DataType)
......
......@@ -33,7 +33,7 @@ for S in [CategoricalDirectSampler, AliasTable]
for i = 1:10
@test rand(s) == 1
end
for p in {[0.3, 0.7], [0.2, 0.3, 0.4, 0.1]}
for p in Any[[0.3, 0.7], [0.2, 0.3, 0.4, 0.1]]
test_categoricalsampler(S(p), p, 10^5, 0.015)
end
end
......
......@@ -141,7 +141,7 @@ distlist = [Arcsine(),
# julia univariate.jl Normal
# julia univariate.jl Normal(1.2,2)
if length(ARGS) > 0
newdistlist = {}
newdistlist = Any[]
for arg in ARGS
a = eval(parse(arg))
if isa(a, DataType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment