Skip to content

Commit

Permalink
improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Feb 21, 2021
1 parent dd5c913 commit 45eea53
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/test-state/unit-test-GenericStatemod.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
x0 = ones(6)
state0 = GenericState(x0)

show(state0)

@test scoretype(state0) == Float64
@test xtype(state0) == Array{Float64,1}

Expand Down Expand Up @@ -48,4 +50,5 @@ reinit!(state0, current_time = 0.5)
@test !Stopping._check_nan_miss(Counters())
@test !Stopping._check_nan_miss(spzeros(0))
@test !Stopping._check_nan_miss(zeros(0))
@test !Stopping._check_nan_miss(missing)
@test !Stopping._check_nan_miss(missing)
@test !Stopping._check_nan_miss(spzeros(0,0))
2 changes: 1 addition & 1 deletion test/test-stopping/test-unitaire-generic-stopping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@
@test Stopping._inequality_check((0.,1.), (1.,1.), (-1.,-1.)) == true
@test_throws ErrorException Stopping._inequality_check(zeros(2), ones(3), -ones(2))

end
end
3 changes: 2 additions & 1 deletion test/test-stopping/unit-test-remote-control.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
end
end


show(src)

end

0 comments on commit 45eea53

Please sign in to comment.