From 3c91c9287a3a7215095f12b9f610a54710e11444 Mon Sep 17 00:00:00 2001 From: Nathan Daly Date: Tue, 26 Jul 2016 03:29:57 -0500 Subject: [PATCH] added TODO(17627): Consider adding randn(BigFloat)/randexp(BigFloat) --- base/random.jl | 1 + test/random.jl | 1 + 2 files changed, 2 insertions(+) diff --git a/base/random.jl b/base/random.jl index a5dc16e114125..a60eef4778a50 100644 --- a/base/random.jl +++ b/base/random.jl @@ -1194,6 +1194,7 @@ Fill the array `A` with random numbers following the exponential distribution (w """ function randexp! end +# TODO(#17627): Consider adding BigFloat support to these functions as well. let Floats = Union{Float16,Float32,Float64} for randfun in [:randn, :randexp] randfun! = Symbol(randfun, :!) diff --git a/test/random.jl b/test/random.jl index 2da4a435cb2c7..a20ebf7d77d93 100644 --- a/test/random.jl +++ b/test/random.jl @@ -351,6 +351,7 @@ for rng in ([], [MersenneTwister()], [RandomDevice()]) @test_throws MethodError r(Bool) @test_throws MethodError r(String) @test_throws MethodError r(AbstractFloat) + # TODO(#17627): Consider adding support for randn(BigFloat) and removing this test. @test_throws MethodError r(BigFloat) @test_throws MethodError r(Int64, (2,3))