Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,5 @@ version = "0.1.0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

[compat]
Aqua = "0.8"
Dates = "1.10"
SafeTestsets = "0.1"
Test = "1.10"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Test", "SafeTestsets"]
2 changes: 1 addition & 1 deletion docs/src/stopping_criterion.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Modules = [AlgorithmsInterface]
Pages = ["stopping_criterion.jl"]
Order = [:type, :function]
Private = true
```
```
14 changes: 14 additions & 0 deletions test/AlgorithmsInterfaceTestSuite.jl/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name = "AlgorithmsInterfaceTestSuite"
uuid = "876e16e5-0a55-4659-a4bc-e03625482f1c"
version = "0.1.0"
authors = ["Ronny Bergmann <git@ronnybergmann.net>"]

[deps]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
AlgorithmsInterface = "d1e3940c-cd12-4505-8585-b0a4b322527d"

[compat]
Test = "1.10.0"

[sources]
AlgorithmsInterface = {path = "../../"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
AlgorithmsInterfaceTestSuite

A package to provide dummy algorithms and other test tools for `AlgorithmsInterface.jl`.
"""
module AlgorithmsInterfaceTestSuite

using AlgorithmsInterface

struct DummyAlgorithm <: Algorithm
stopping_criterion::StoppingCriterion
end
struct DummyProblem <: Problem end
mutable struct DummyState{S <: StoppingCriterionState} <: State
stopping_criterion_state::S
iteration::Int
end

export DummyAlgorithm, DummyProblem, DummyState

end # module AlgorithmsInterfaceTestSuite
18 changes: 18 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[deps]
AlgorithmsInterface = "d1e3940c-cd12-4505-8585-b0a4b322527d"
AlgorithmsInterfaceTestSuite = "876e16e5-0a55-4659-a4bc-e03625482f1c"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
AlgorithmsInterface = {path = "../"}
AlgorithmsInterfaceTestSuite = {path = "AlgorithmsInterfaceTestSuite.jl"}

[compat]
Aqua = "0.8"
SafeTestsets = "0.1"
Test = "1.10"
julia = "1.10"
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using Dates
end

@safetestset "Stopping Criteria" begin
include("stopping_criterion.jl")
include("test_stopping_criterion.jl")
end

@safetestset "Aqua" begin
Expand Down
19 changes: 10 additions & 9 deletions test/stopping_criterion.jl → test/test_stopping_criterion.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
using Pkg
Pkg.activate(@__DIR__)
if VERSION < v"1.11"
# Once the main package is registered: just load test suite
# Pkg.add(path = (@__DIR__) * "/../", subdir = "test/AlgorithmsInterfaceTestSuite.jl")
Pkg.develop(path = (@__DIR__) * "/../")
Pkg.develop(path = (@__DIR__) * "/AlgorithmsInterfaceTestSuite.jl")
end
Pkg.resolve()
using Test
using AlgorithmsInterface
using Dates

struct DummyAlgorithm <: Algorithm
stopping_criterion::StoppingCriterion
end
struct DummyProblem <: Problem end
mutable struct DummyState{S <: StoppingCriterionState} <: State
stopping_criterion_state::S
iteration::Int
end
using AlgorithmsInterfaceTestSuite

problem = DummyProblem()

Expand Down
Loading