Skip to content

Commit 607c7ed

Browse files
committed
Test public interface with names
1 parent 34adc5c commit 607c7ed

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

test/public.jl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using ADTypes
2+
using Test
3+
4+
public_symbols = (
5+
:AbstractMode,
6+
:ForwardMode,
7+
:ReverseMode,
8+
:ForwardOrReverseMode,
9+
:SymbolicMode,
10+
:mode,
11+
:Auto,
12+
# Sparse Automatic Differentiation
13+
:dense_ad,
14+
# Sparsity detection
15+
:sparsity_detector,
16+
:NoSparsityDetector,
17+
:KnownJacobianSparsityDetector,
18+
:KnownHessianSparsityDetector,
19+
# Matrix coloring
20+
:coloring_algorithm,
21+
:NoColoringAlgorithm
22+
)
23+
@test public_symbols names(ADTypes)

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,9 @@ end
104104
@testset "Miscellaneous" begin
105105
include("misc.jl")
106106
end
107+
if VERSION >= v"1.11.0-DEV.469"
108+
@testset "Public" begin
109+
include("public.jl")
110+
end
111+
end
107112
end

0 commit comments

Comments
 (0)