Skip to content

Commit a54094c

Browse files
committed
up
1 parent 295c1e7 commit a54094c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

test/simulation_and_solving/simulate_ODEs.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ end
167167
# Checks that solution values have types consistent with their input types.
168168
# Check that both float types are preserved in the solution (and problems), while integers are
169169
# promoted to floats.
170-
# Checks that the time types are correct (`Float64` by default or possibly `Float32`), however,
171-
# type conversion only occurs in the solution, and integer types are preserved in problems.
170+
# Checks that the time types are correct (`Float64` by default or possibly `Float32`).
172171
let
173172
# Create model. Checks when input type is `Float64` the produced values are also `Float64`.
174173
rn = @reaction_network begin
@@ -188,7 +187,6 @@ let
188187
osol = solve(oprob)
189188
@test eltype(osol[:X1]) == eltype(osol[:X2]) == typeof(oprob[:X1]) == typeof(oprob[:X2]) == Float64
190189
@test eltype(osol.t) == Float64
191-
@test typeof(oprob.tspan[1]) == typeof(oprob.tspan[2]) == Int64
192190

193191
# Checks when values are `Float32` (a valid type and should be preserved).
194192
u0 = [:X1 => 1.0f0, :X2 => 3.0f0]

test/simulation_and_solving/simulate_SDEs.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ let
407407
ssol = solve(sprob, ISSEM())
408408
@test eltype(ssol[:X1]) == eltype(ssol[:X2]) == typeof(sprob[:X1]) == typeof(sprob[:X2]) == Float64
409409
@test eltype(ssol.t) == Float64
410-
@test typeof(sprob.tspan[1]) == typeof(sprob.tspan[2]) == Int64
411410

412411
# Checks when values are `Float32` (a valid type and should be preserved).
413412
u0 = [:X1 => 1.0f0, :X2 => 3.0f0]

0 commit comments

Comments
 (0)