Skip to content

Commit 197ca26

Browse files
authored
Apply suggestions from code review
1 parent f3a843f commit 197ca26

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: Project.toml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "1.5.0"
55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
8-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
98
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
109

1110
[weakdeps]

Diff for: ext/AbstractFFTsTestExt.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using AbstractFFTs
66
using AbstractFFTs: TestUtils
77
using AbstractFFTs.LinearAlgebra
88
using Test
9-
import Random
109

1110
# Ground truth x_fft computed using FFTW library
1211
const TEST_CASES = (
@@ -77,7 +76,7 @@ end
7776
function TestUtils.test_plan_adjoint(P::AbstractFFTs.Plan, x::AbstractArray;
7877
real_plan=false, copy_input=false, test_wrappers=true)
7978
_copy = copy_input ? copy : identity
80-
y = Random.rand!(P * _copy(x))
79+
y = map(a -> rand(typeof(a)), P * _copy(x)) # generically construct rand array
8180
# test basic properties
8281
@test_skip eltype(P') === typeof(y) # (AbstractFFTs.jl#110)
8382
@test (P')' === P # test adjoint of adjoint

0 commit comments

Comments
 (0)