Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Mar 4, 2024
1 parent 3487312 commit 7c97b62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/ad.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using ArrayInterface, ReverseDiff, Tracker
using ArrayInterface, ReverseDiff, Tracker, Test
x = reduce(vcat, ReverseDiff.track([4.0]))
ArrayInterface.aos_to_soa(x) isa ReverseDiff.TrackedArray
@test ArrayInterface.aos_to_soa(x) isa ReverseDiff.TrackedArray
x = reduce(vcat, ReverseDiff.track([4.0,4.0]))
ArrayInterface.aos_to_soa(x) isa ReverseDiff.TrackedArray
@test ArrayInterface.aos_to_soa(x) isa ReverseDiff.TrackedArray

x = identity.(Tracker.TrackedArray([4.0]))
ArrayInterface.aos_to_soa(x) isa Tracker.TrackedArray
@test ArrayInterface.aos_to_soa(x) isa Tracker.TrackedArray
x = identity.(Tracker.TrackedArray([4.0,4.0]))
ArrayInterface.aos_to_soa(x) isa Tracker.TrackedArray
@test ArrayInterface.aos_to_soa(x) isa Tracker.TrackedArray

0 comments on commit 7c97b62

Please sign in to comment.