Skip to content

Commit 4e0f005

Browse files
committed
add running doctests to test suite
1 parent f9ae6dc commit 4e0f005

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
45
ProximalCore = "dc4f5ac2-75d1-4f31-931e-60435d74994b"
56
ProximalOperators = "a725b495-10eb-56fe-b38b-717eba820537"

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ using ProximalCore:
1818
is_support
1919

2020
using Aqua
21+
using Documenter
2122

2223
function call_test(f, x::ArrayOrTuple{R}) where R <: Real
2324
try
@@ -116,6 +117,10 @@ end
116117
Aqua.test_all(ProximalOperators; ambiguities=false)
117118
end
118119

120+
@testset "Documentation" begin
121+
doctest(ProximalOperators)
122+
end
123+
119124
@testset "Utilities" begin
120125
include("test_symmetricpacked.jl")
121126
end

0 commit comments

Comments
 (0)