Skip to content

Commit

Permalink
Simplify array adapt tests not to trigger mapreduce.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jul 15, 2020
1 parent 09c8148 commit a7d4f6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ end
@testset "adapt" begin
A = rand(Float32, 3, 3)
dA = CuArray(A)
@test Adapt.adapt(Array, dA) A
@test Adapt.adapt(CuArray, A) dA
@test Adapt.adapt(Array, dA) == A
@test Adapt.adapt(CuArray, A) isa CuArray
@test Array(Adapt.adapt(CuArray, A)) == A
end

@testset "view" begin
Expand Down

0 comments on commit a7d4f6e

Please sign in to comment.