Skip to content

Commit

Permalink
remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
corakingdon committed Feb 26, 2020
1 parent 07cba75 commit 588ba23
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@ using Query

@testset "fund-model" begin

#default model exported by fund module
default_nsteps = 1050
m = MimiFUND.get_model()
run(m)
@test Mimi.time_labels(m) == collect(1950:1:1950+default_nsteps)

#default model created by MimiFUND.get_model()
m1 = MimiFUND.get_model()
run(m1)
@test Mimi.time_labels(m1) == collect(1950:1:1950+default_nsteps)
@test Mimi.time_labels(m1) == collect(1950:3000)

# use optional `nsteps` arg for MimiFUND.get_model()
@test_throws ErrorException m2 = MimiFUND.get_model(nsteps = 2000) # should error because it's longer than the default without providing different parameters
Expand Down

0 comments on commit 588ba23

Please sign in to comment.