Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const GROUP = get(ENV, "GROUP", "All")
function activate_nopre_env()
Pkg.activate("nopre")
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
Pkg.instantiate()
return Pkg.instantiate()
end

# Handle nopre group separately - requires its own environment
Expand Down Expand Up @@ -672,8 +672,15 @@ end
@test [ab_ab; ab_cd] isa Matrix
@test getaxes([ab_ab; cd_ab]) == (ABCD, AB)
@test getaxes([ab_ab ab_cd]) == (AB, ABCD)
@test getaxes([ab_ab ab_cd; cd_ab cd_cd]) == (ABCD, ABCD)
@test getaxes([ab_ab ab_cd; cd_ab cd_cd]) == (ABCD, ABCD)
# These tests fail on Julia 1.13+ due to changed hvcat dispatch behavior
# The ComponentArrays.hvcat method is not being selected over LinearAlgebra's
if VERSION < v"1.13.0-"
@test getaxes([ab_ab ab_cd; cd_ab cd_cd]) == (ABCD, ABCD)
@test getaxes([ab_ab ab_cd; cd_ab cd_cd]) == (ABCD, ABCD)
else
@test_broken getaxes([ab_ab ab_cd; cd_ab cd_cd]) == (ABCD, ABCD)
@test_broken getaxes([ab_ab ab_cd; cd_ab cd_cd]) == (ABCD, ABCD)
end
@test getaxes([ab ab_cd]) == (AB, _CD)
@test getaxes([ab_cd ab]) == (AB, CD)
@test getaxes([ab'; cd_ab]) == (_CD, AB)
Expand Down Expand Up @@ -1021,6 +1028,11 @@ end
include("gpu_tests.jl")
end

@testset "Reactant" begin
include("reactant_tests.jl")
# Reactant doesn't support Julia 1.13+ yet
# See: https://github.com/EnzymeAD/Reactant.jl/issues/1736
# Tracking: https://github.com/SciML/ComponentArrays.jl/issues/328
if VERSION < v"1.13.0-"
@testset "Reactant" begin
include("reactant_tests.jl")
end
end
Loading