Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Persefone.jl
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Persefone
Persefone.jl
Commits
73670293
Commit
73670293
authored
9 months ago
by
Marco Matthies
Browse files
Options
Downloads
Patches
Plain Diff
Extend tests for switchable crop models
parent
8dee452d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/crop_tests.jl
+9
-2
9 additions, 2 deletions
test/crop_tests.jl
with
9 additions
and
2 deletions
test/crop_tests.jl
+
9
−
2
View file @
73670293
...
@@ -6,9 +6,16 @@
...
@@ -6,9 +6,16 @@
const
TESTPARAM_ALMASS
=
joinpath
(
pkgdir
(
Persefone
),
"test"
,
"test_parameters_almass.toml"
)
const
TESTPARAM_ALMASS
=
joinpath
(
pkgdir
(
Persefone
),
"test"
,
"test_parameters_almass.toml"
)
const
TESTPARAM_SIMPLECROP
=
joinpath
(
pkgdir
(
Persefone
),
"test"
,
"test_parameters_simplecrop.toml"
)
const
TESTPARAM_SIMPLECROP
=
joinpath
(
pkgdir
(
Persefone
),
"test"
,
"test_parameters_simplecrop.toml"
)
@testset
"Model initialisation"
begin
#"Model initialisation" begin
for
paramfile
in
(
TESTPARAM_ALMASS
,
TESTPARAM_SIMPLECROP
)
@testset
for
paramfile
in
(
TESTPARAM_ALMASS
,
TESTPARAM_SIMPLECROP
)
@testset
"Model initialisation"
begin
model
=
initialise
(
paramfile
)
model
=
initialise
(
paramfile
)
@test
model
isa
AgricultureModel
@test
model
isa
AgricultureModel
end
end
@testset
"Time step"
begin
model
=
initialise
(
paramfile
)
stepsimulation!
(
model
)
@test
model
isa
AgricultureModel
end
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment