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

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

parent ce6c0c6d
...@@ -28,7 +28,7 @@ distlist = [ ...@@ -28,7 +28,7 @@ distlist = [
Binomial(100, 0.9)] Binomial(100, 0.9)]
if length(ARGS) > 0 if length(ARGS) > 0
newdistlist = {} newdistlist = Any[]
for arg in ARGS for arg in ARGS
a = eval(parse(arg)) a = eval(parse(arg))
if isa(a, DataType) if isa(a, DataType)
......
...@@ -33,7 +33,7 @@ for S in [CategoricalDirectSampler, AliasTable] ...@@ -33,7 +33,7 @@ for S in [CategoricalDirectSampler, AliasTable]
for i = 1:10 for i = 1:10
@test rand(s) == 1 @test rand(s) == 1
end 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) test_categoricalsampler(S(p), p, 10^5, 0.015)
end end
end end
......
...@@ -141,7 +141,7 @@ distlist = [Arcsine(), ...@@ -141,7 +141,7 @@ distlist = [Arcsine(),
# julia univariate.jl Normal # julia univariate.jl Normal
# julia univariate.jl Normal(1.2,2) # julia univariate.jl Normal(1.2,2)
if length(ARGS) > 0 if length(ARGS) > 0
newdistlist = {} newdistlist = Any[]
for arg in ARGS for arg in ARGS
a = eval(parse(arg)) a = eval(parse(arg))
if isa(a, DataType) 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