Skip to content

Commit e490e0c

Browse files
test: make test debugging easier
1 parent b5288ad commit e490e0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ADtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end
3333
end
3434

3535
@testset "No constraint" begin
36-
for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(),
36+
@testset "$adtype" for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(),
3737
AutoFiniteDiff(), AutoModelingToolkit(), AutoSparseForwardDiff(),
3838
AutoSparseReverseDiff(), AutoSparse(AutoZygote()), AutoModelingToolkit(true, true), AutoMooncake()]
3939
optf = OptimizationFunction(rosenbrock, adtype)
@@ -71,7 +71,7 @@ end
7171
end
7272

7373
@testset "One constraint" begin
74-
for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(),
74+
@testset "$adtype" for adtype in [AutoEnzyme(), AutoForwardDiff(), AutoZygote(), AutoReverseDiff(),
7575
AutoFiniteDiff(), AutoModelingToolkit(), AutoSparseForwardDiff(),
7676
AutoSparseReverseDiff(), AutoSparse(AutoZygote()), AutoModelingToolkit(true, true), AutoMooncake()]
7777
cons = (res, x, p) -> (res[1] = x[1]^2 + x[2]^2 - 1.0; return nothing)
@@ -92,7 +92,7 @@ end
9292
end
9393

9494
@testset "Two constraints" begin
95-
for adtype in [AutoForwardDiff(), AutoZygote(), AutoReverseDiff(),
95+
@testset "$adtype" for adtype in [AutoForwardDiff(), AutoZygote(), AutoReverseDiff(),
9696
AutoFiniteDiff(), AutoModelingToolkit(), AutoSparseForwardDiff(),
9797
AutoSparseReverseDiff(), AutoSparse(AutoZygote()), AutoModelingToolkit(true, true), AutoMooncake()]
9898
function con2_c(res, x, p)

0 commit comments

Comments
 (0)