Skip to content

Commit

Permalink
fix InitRotation to initrotation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
virgile-baudrot committed Feb 8, 2021
1 parent 21ee58c commit c8ffd93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/exposure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ end
@test US(RS(3,2), 4) == RS(3,4)
@test US(RS(3,DateTime(2020,2,1)), DateTime(2021,1,10)) == RS(3,DateTime(2021,1,10))

@test InitRotation(1, (3,3)) == [
@test initrotation(1, (3,3)) == [
RS(1,1) RS(1,1) RS(1,1);
RS(1,1) RS(1,1) RS(1,1);
RS(1,1) RS(1,1) RS(1,1)
]

@test InitRotation(DateTime(2020,2,1), (2,2)) == [
@test initrotation(DateTime(2020,2,1), (2,2)) == [
RS(1,DateTime(2020,2,1)) RS(1,DateTime(2020,2,1)) ;
RS(1,DateTime(2020,2,1)) RS(1,DateTime(2020,2,1))
]
Expand All @@ -130,7 +130,7 @@ end
pesticide1 = zeros(nr,nc),
pesticide2 = zeros(nr,nc),
pesticide3 = zeros(nr,nc),
rotation = InitRotation(1, (nr,nc)),
rotation = initrotation(1, (nr,nc)),
population = ones(nr,nc).*10^4, )

crop = ones(nr,nc)
Expand Down

0 comments on commit c8ffd93

Please sign in to comment.