Skip to content

Commit d3c2ecd

Browse files
test: fix symbol_indexing testset
1 parent bb95814 commit d3c2ecd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/downstream/symbol_indexing.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using RecursiveArrayTools, ModelingToolkit, OrdinaryDiffEq, SymbolicIndexingInterface, Test
2+
using Zygote
23
using ModelingToolkit: t_nounits as t, D_nounits as D
34

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

41-
@test "Symbolic Indexing ADjoint" all(all.(isone, gs.u))
42+
@testset "Symbolic Indexing ADjoint" begin
43+
@test all(all.(isone, gs.u))
44+
end
4245

4346
# Tables interface
4447
test_tables_interface(sol_new, [:timestamp, Symbol("x(t)")], hcat(sol_new[t], sol_new[x]))

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ end
4747
if GROUP == "SymbolicIndexingInterface" || GROUP == "Downstream"
4848
if GROUP == "SymbolicIndexingInterface"
4949
activate_downstream_env()
50-
@time @safetestset "DiffEqArray Indexing Tests" include("downstream/symbol_indexing.jl")
5150
end
51+
@time @safetestset "DiffEqArray Indexing Tests" include("downstream/symbol_indexing.jl")
5252
end
5353

5454
if GROUP == "GPU"

0 commit comments

Comments
 (0)