Skip to content

Commit c9a84f5

Browse files
committed
Add tests
1 parent e56b7c2 commit c9a84f5

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

REQUIRE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ ParameterizedFunctions 2.0.0
33
DiffEqBase 3.0.3
44
DiffEqOperators
55
DiffEqBiological
6-
Reexport

src/DiffEqProblemLibrary.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@ module DiffEqProblemLibrary
55
module ODEProblemLibrary
66
importodeproblems() = @eval include(joinpath(@__DIR__, "ode/ode_premade_problems.jl"))
77
end # module
8+
89
module DAEProblemLibrary
910
importdaeproblems() = @eval include(joinpath(@__DIR__, "dae_premade_problems.jl"))
1011
end # module
12+
1113
module DDEProblemLibrary
1214
importddeproblems() = @eval include(joinpath(@__DIR__, "dde_premade_problems.jl"))
1315
end # module
16+
1417
module SDEProblemLibrary
1518
importsdeproblems() = @eval include(joinpath(@__DIR__, "sde_premade_problems.jl"))
1619
end # module
20+
1721
module JumpProblemLibrary
18-
importjumpproblems() = @eval include(joinpath(@__DIR__, "src/jump_premade_problems.jl"))
22+
importjumpproblems() = @eval include(joinpath(@__DIR__, "jump_premade_problems.jl"))
1923
end # module
2024

2125
end # module

src/dde_premade_problems.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
module DAEProblemLibrary
21
using DiffEqBase
32
# DDE Example Problems
43
# examples with constant delays
@@ -658,4 +657,3 @@ prob_dde_qs = build_prob_dde_qs([1; 8.4e8; 2.5e-9; 7.6e-8; 5e-15], # initial val
658657
0.1, 1.3e-12, 0.38, 1.3, 0.66, 2.3e-19, 2.3e-18, 70e-9,
659658
2.3, 0.05, 4e4, 5e-7, 0.080, 1.5e-4, 1.1e-8, 70e-9, 2.5,
660659
0.005)
661-
end # module

src/ode/brusselator_prob.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function init_brusselator_2d(xyd)
5050
end
5151
xyd_brusselator = range(0,stop=1,length=32)
5252

53-
@doc @doc doc"""
53+
@doc doc"""
5454
2D Brusselator
5555
5656
```math
@@ -128,7 +128,7 @@ function init_brusselator_1d(N)
128128
u
129129
end
130130

131-
@doc @doc doc"""
131+
@doc doc"""
132132
1D Brusselator
133133
134134
```math

test/runtests.jl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
using DiffEqProblemLibrary
2-
using Base.Test
2+
using Test
3+
using DiffEqProblemLibrary.ODEProblemLibrary: importodeproblems
4+
using DiffEqProblemLibrary.DDEProblemLibrary: importddeproblems
5+
using DiffEqProblemLibrary.DAEProblemLibrary: importdaeproblems
6+
using DiffEqProblemLibrary.SDEProblemLibrary: importsdeproblems
7+
using DiffEqProblemLibrary.JumpProblemLibrary: importjumpproblems
8+
9+
importodeproblems()
10+
importddeproblems()
11+
importjumpproblems()
12+
importsdeproblems()
13+
importdaeproblems()
314

415
# The test is simply that all of the examples build!

0 commit comments

Comments
 (0)