Skip to content
Snippets Groups Projects
Commit af7fb1ba authored by Marco Matthies's avatar Marco Matthies
Browse files

Fixes for SimpleCrop unit tests

parent d141b3d3
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,9 @@ import Persefone: ...@@ -12,7 +12,9 @@ import Persefone:
cropname, cropname,
cropheight, cropheight,
cropcover, cropcover,
cropyield cropyield,
sow!,
harvest!
struct CropType struct CropType
name::String name::String
...@@ -50,7 +52,7 @@ Change the cropstate to sow the specified crop. ...@@ -50,7 +52,7 @@ Change the cropstate to sow the specified crop.
""" """
function sow!(cs::CropState, model::SimulationModel, cropname::String) function sow!(cs::CropState, model::SimulationModel, cropname::String)
cs.croptype = model.crops[cropname] cs.croptype = model.crops[cropname]
cs.height = 0cm cs.height = 0.0cm
end end
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment