Skip to content

Commit

Permalink
log1p test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Mar 29, 2022
1 parent 8682362 commit 70cbd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Random/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ struct FakeFloat64 <: AbstractFloat
x::Float64
end
Base.rand(rng::AbstractRNG, ::Random.SamplerTrivial{Random.CloseOpen01{FakeFloat64}}) = FakeFloat64(rand(rng))
for f in (:sqrt, :log, :one, :zero, :abs, :+, :-)
for f in (:sqrt, :log, :log1p, :one, :zero, :abs, :+, :-)
@eval Base.$f(x::FakeFloat64) = FakeFloat64($f(x.x))
end
for f in (:+, :-, :*, :/)
Expand Down

0 comments on commit 70cbd69

Please sign in to comment.