Skip to content

Commit bad6a77

Browse files
committed
Fixed tests using Floats
1 parent 5ddd166 commit bad6a77

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/core/muller_tests.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
@testset "Quadratic function" begin
33
f(u, p) = u^2 - p
44

5-
u0 = (10, 20, 30)
6-
p = 612
5+
u0 = (10.0, 20.0, 30.0)
6+
p = 612.0
77
prob = NonlinearProblem{false}(f, u0, p)
88
sol = solve(prob, SimpleMuller())
99

1010
@test sol.u 612
1111

12-
u0 = (-10, -20, -30)
12+
u0 = (-10.0, -20.0, -30.0)
1313
prob = NonlinearProblem{false}(f, u0, p)
1414
sol = solve(prob, SimpleMuller())
1515

@@ -19,13 +19,13 @@
1919
@testset "Sine function" begin
2020
f(u, p) = sin(u)
2121

22-
u0 = (1, 2, 3)
22+
u0 = (1.0, 2.0, 3.0)
2323
prob = NonlinearProblem{false}(f, u0)
2424
sol = solve(prob, SimpleMuller())
2525

2626
@test sol.u π
2727

28-
u0 = (2, 4, 6)
28+
u0 = (2.0, 4.0, 6.0)
2929
prob = NonlinearProblem{false}(f, u0)
3030
sol = solve(prob, SimpleMuller())
3131

@@ -35,19 +35,19 @@
3535
@testset "Exponential-sine function" begin
3636
f(u, p) = exp(-u)*sin(u)
3737

38-
u0 = (-2, -3, -4)
38+
u0 = (-2.0, -3.0, -4.0)
3939
prob = NonlinearProblem{false}(f, u0)
4040
sol = solve(prob, SimpleMuller())
4141

4242
@test sol.u -π
4343

44-
u0 = (-1, 0, 1/2)
44+
u0 = (-1.0, 0.0, 1/2)
4545
prob = NonlinearProblem{false}(f, u0)
4646
sol = solve(prob, SimpleMuller())
4747

4848
@test sol.u 0
4949

50-
u0 = (-1, 0, 1)
50+
u0 = (-1.0, 0.0, 1.0)
5151
prob = NonlinearProblem{false}(f, u0)
5252
sol = solve(prob, SimpleMuller())
5353

0 commit comments

Comments
 (0)