Skip to content

Commit

Permalink
test: fix symbol_indexing testset
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Apr 30, 2024
1 parent 529d5b7 commit 3f77e3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/downstream/symbol_indexing.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using RecursiveArrayTools, ModelingToolkit, OrdinaryDiffEq, SymbolicIndexingInterface, Test
using Zygote
using ModelingToolkit: t_nounits as t, D_nounits as D

include("../testutils.jl")
Expand Down Expand Up @@ -38,7 +39,9 @@ gs, = Zygote.gradient(sol) do sol
sum(sol[fol_separate.x])
end

@test "Symbolic Indexing ADjoint" all(all.(isone, gs.u))
@testset "Symbolic Indexing ADjoint" begin
@test all(all.(isone, gs.u))
end

# Tables interface
test_tables_interface(sol_new, [:timestamp, Symbol("x(t)")], hcat(sol_new[t], sol_new[x]))
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ end
if GROUP == "SymbolicIndexingInterface" || GROUP == "Downstream"
if GROUP == "SymbolicIndexingInterface"
activate_downstream_env()
@time @safetestset "DiffEqArray Indexing Tests" include("downstream/symbol_indexing.jl")
end
@time @safetestset "DiffEqArray Indexing Tests" include("downstream/symbol_indexing.jl")
end

if GROUP == "GPU"
Expand Down

0 comments on commit 3f77e3d

Please sign in to comment.