From d3c2ecd87edb9b38490cb8fa98d551984dd741aa Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 30 Apr 2024 13:31:28 +0530 Subject: [PATCH] test: fix symbol_indexing testset --- test/downstream/symbol_indexing.jl | 5 ++++- test/runtests.jl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/downstream/symbol_indexing.jl b/test/downstream/symbol_indexing.jl index bcb8dced..5ef7e3ac 100644 --- a/test/downstream/symbol_indexing.jl +++ b/test/downstream/symbol_indexing.jl @@ -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") @@ -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])) diff --git a/test/runtests.jl b/test/runtests.jl index bf264273..819e40f3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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"