|
384 | 384 | ### Other Tests ###
|
385 | 385 |
|
386 | 386 | # Checks that solution values have types consistent with their input types.
|
387 |
| -# Check that both float types are preserved in the solution (and problems), while integers are |
| 387 | +# Check that both float types are preserved in the solution (and problems), while integers are |
388 | 388 | # promoted to floats.
|
389 | 389 | # Checks that the time types are correct (`Float64` by default or possibly `Float32`), however,
|
390 | 390 | # type conversion only occurs in the solution, and integer types are preserved in problems.
|
|
400 | 400 | @test eltype(ssol[:X1]) == eltype(ssol[:X2]) == typeof(sprob[:X1]) == typeof(sprob[:X2]) == Float64
|
401 | 401 | @test eltype(ssol.t) == typeof(sprob.tspan[1]) == typeof(sprob.tspan[2]) == Float64
|
402 | 402 |
|
403 |
| - # Checks that `Int64` values are promoted to `Float64`. |
| 403 | + # Checks that `Int64` values are promoted to `Float64`. |
404 | 404 | u0 = [:X1 => 1, :X2 => 3]
|
405 | 405 | ps = [:k1 => 2, :k2 => 3]
|
406 | 406 | sprob = SDEProblem(rn, u0, 1, ps)
|
|
413 | 413 | ps = [:k1 => 2.0f0, :k2 => 3.0f0]
|
414 | 414 | sprob = SDEProblem(rn, u0, 1.0f0, ps)
|
415 | 415 | ssol = solve(sprob, ISSEM())
|
416 |
| - @test eltype(ssol[:X1]) == eltype(ssol[:X2]) == typeof(sprob[:X1]) == typeof(sprob[:X2]) == Float32 |
| 416 | + @test_broken eltype(ssol[:X1]) == eltype(ssol[:X2]) == typeof(sprob[:X1]) == typeof(sprob[:X2]) == Float32 |
417 | 417 | @test eltype(ssol.t) == typeof(sprob.tspan[1]) == typeof(sprob.tspan[2]) == Float32
|
418 | 418 | end
|
419 | 419 |
|
|
0 commit comments