Skip to content

Commit c8a04b1

Browse files
authored
fix tests on 1.0 (#103)
1 parent 00452ab commit c8a04b1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ version = "0.7.0"
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
77
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
88

9-
[targets.test.deps]
9+
[extras]
1010
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1111
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
12+
13+
[targets]
14+
test = ["Random", "Test"]

test/F64.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ F64(x::F64) = x
88
for op in (:+, :-, :sin, :cos, :asin, :acos)
99
@eval Base.$op(a::F64) = F64($op(a.x))
1010
end
11-
for op in (:+, :-, :*, :/, :atan2)
11+
for op in (:+, :-, :*, :/, isdefined(Base, :atan2) ? :atan2 : :atan)
1212
@eval Base.$op(a::F64, b::F64) = F64($op(a.x, b.x))
1313
end
1414
for op in (:zero, :one,)
1515
@eval Base.$op(::Type{F64}) = F64($op(Float64))
1616
end
1717

18-
if VERSION.minor >= 7
18+
if VERSION >= v"0.7-"
1919
Random.rand(rng::AbstractRNG, ::Random.SamplerTrivial{Random.CloseOpen01{F64}}) = F64(rand(rng))
2020
else
2121
Base.rand(rng::AbstractRNG, ::Type{F64}) = F64(rand())

0 commit comments

Comments
 (0)