Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 002b0e2

Browse files
committed
Added more tests
1 parent 98b9f78 commit 002b0e2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/basictests.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,21 @@ probB = IntervalNonlinearProblem(f, tspan)
185185
sol = solve(probB, Falsi())
186186
@test sol.left sqrt(2.0)
187187

188+
sol = solve(probB, Bisection())
189+
@test sol.left sqrt(2.0)
190+
188191
# Ridder
189192
sol = solve(probB, Ridder())
190193
@test sol.left sqrt(2.0)
191-
192-
sol = solve(probB, Bisection())
194+
tspan = (sqrt(2.0), 10.0)
195+
probB = IntervalNonlinearProblem(f, tspan)
196+
sol = solve(probB, Ridder())
193197
@test sol.left sqrt(2.0)
198+
tspan = (0.0, sqrt(2.0))
199+
probB = IntervalNonlinearProblem(f, tspan)
200+
sol = solve(probB, Ridder())
201+
@test sol.left sqrt(2.0)
202+
probB = IntervalNonlinearProblem(f, tspan)
194203

195204
# Garuntee Tests for Bisection
196205
f = function (u, p)

0 commit comments

Comments
 (0)