Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mongibellili committed Jun 12, 2024
1 parent ea79c80 commit a253e6b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# QuantizedSystemSolver
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://github.com/mongibellili/QuantizedSystemSolver.jl)
[![Build Status](https://github.com/mongibellili/QuantizedSystemSolver.jl/workflows/CI/badge.svg)](https://github.com/mongibellili/QuantizedSystemSolver.jl/actions)
[![Coverage](https://codecov.io/gh/mongibellili/QuantizedSystemSolver.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/mongibellili/QuantizedSystemSolver.jl)
[![Coverage](https://coveralls.io/repos/github/mongibellili/QuantizedSystemSolver.jl/badge.svg?branch=main)](https://coveralls.io/github/mongibellili/QuantizedSystemSolver.jl?branch=main)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://github.com/mongibellili/QuantizedSystemSolver)
[![Build Status](https://github.com/mongibellili/QuantizedSystemSolver/workflows/CI/badge.svg)](https://github.com/mongibellili/QuantizedSystemSolver/actions)
[![Coverage](https://codecov.io/gh/mongibellili/QuantizedSystemSolver/branch/main/graph/badge.svg)](https://codecov.io/gh/mongibellili/QuantizedSystemSolver)
[![Coverage](https://coveralls.io/repos/github/mongibellili/QuantizedSystemSolver/badge.svg?branch=main)](https://coveralls.io/github/mongibellili/QuantizedSystemSolver?branch=main)
6 changes: 3 additions & 3 deletions src/QuantizedSystemSolver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ import Base: sqrt, exp, log, sin, cos, sincos, tan,
export save_SolSum,plotRelativeError#,stackplotRelativeError,plot_save_RelativeError,stackplot_save_RelativeError,saveRelativeError,stacksaveRelativeError
export plotAbsoluteError#,stackplotAbsoluteError,plot_save_AbsoluteError,stackplot_save_AbsoluteError,saveAbsoluteError,stacksaveAbsoluteError
export getError,getPlot,getPlot!#,plotCumulativeSquaredRelativeError,plotMSE,getIntervalError,plotElapsed

export NLodeProblem, @NLodeProblem,@saveNLodeProblem,solve,save_prob_to_model,QSS_Solve_from_model,solInterpolated
export NLODEProblem
export NLodeProblem#= , @NLodeProblem,@saveNLodeProblem =#,solve,save_prob_to_model,QSS_Solve_from_model,solInterpolated
export Sol,getErrorByRodas,getAllErrorsByRefs,getAverageErrorByRefs

export Taylor0,mulT,mulTT,createT,addsub,negateT,subsub,subadd,subT,addT,muladdT,mulsub,divT # in case to save into a file, otherwise remove
Expand Down Expand Up @@ -122,7 +122,7 @@ import Base: sqrt, exp, log, sin, cos, sincos, tan,
# include("dense/NL_integrators/NL_LiQSS_discreteIntegrator.jl")
# implicit integrator when large entries NOT on the main diagonal of the jacobian

# include("dense/NL_integrators/NL_nmLiQSS_Integrator.jl")
include("dense/NL_integrators/NL_nmLiQSS_Integrator.jl")
include("dense/NL_integrators/NL_nmLiQSS_discreteIntegrator.jl")


Expand Down
15 changes: 15 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,20 @@ using Test
du[1] = -20.0*u[1]-80.0*u[2]+1600.0
du[2] =1.24*u[1]-0.01*u[2]+0.2
end)
@test typeof(odeprob) <: NLODEProblem{1,2,0,0,3}
@test odeprob.prname == :sysb53
@test odeprob.initConditions == [-1.0, -2.0]
@test odeprob.jac == [[1,2], [1,2]] || odeprob.jac == [[2,1], [2,1]]
@test odeprob.SD == [[1,2], [1,2]] || odeprob.SD == [[2,1], [2,1]]
@test typeof(odeprob.eqs) <: Function
@test typeof(odeprob.exactJac) <: Function
@test typeof(odeprob.jacDim) <: Function
@test odeprob.a == Val(2)
@test odeprob.b == Val(0)
@test odeprob.c == Val(0)
@test odeprob.prtype == Val(1)
tspan=(0.0,1.0)
sol=solve(odeprob,nmliqss1(),tspan)
@test sol.algName == "nmliqss1"

end

0 comments on commit a253e6b

Please sign in to comment.