From 99174d2742e8088d575a6e41096795517868b314 Mon Sep 17 00:00:00 2001 From: Marco Matthies <71844+marcom@users.noreply.github.com> Date: Mon, 19 Aug 2024 02:40:38 +0200 Subject: [PATCH] Fix FarmPlot constructor calls in crop model tests --- test/crop_tests.jl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/crop_tests.jl b/test/crop_tests.jl index 9146925..eb6b3e6 100644 --- a/test/crop_tests.jl +++ b/test/crop_tests.jl @@ -21,7 +21,10 @@ end @testset "Submodule ALMaSS" begin ct = Ps.ALMaSS.CropType("olive tree", missing, missing, missing, missing, missing, missing, missing) - fp = FarmPlot(0, [(0,0)], + id = 0 + pixels = [(0, 0)] + farmer = 0 + fp = FarmPlot(id, pixels, farmer, Ps.ALMaSS.CropState(ct, Ps.ALMaSS.janfirst, 0.0, 0.0m, 0.0, 0.0, Ps.Management[])) @test fp isa FarmPlot @test fp isa FarmPlot{Ps.ALMaSS.CropState} @@ -34,7 +37,10 @@ end @testset "Submodule SimpleCrop" begin ct = Ps.SimpleCrop.CropType("olive tree") - fp = FarmPlot(0, [(0,0)], Ps.SimpleCrop.CropState(ct, 0.0cm)) + id = 0 + pixels = [(0, 0)] + farmer = 0 + fp = FarmPlot(id, pixels, farmer, Ps.SimpleCrop.CropState(ct, 0.0cm)) @test fp isa FarmPlot @test fp isa FarmPlot{Ps.SimpleCrop.CropState} @test croptype(fp) isa Ps.SimpleCrop.CropType -- GitLab