Skip to content

Commit a77eed4

Browse files
test: handle initial parameters in tests
1 parent 6af5667 commit a77eed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/odesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ end
13091309
ps = zeros(8)
13101310
setp(sys2, x)(ps, 2ones(2))
13111311
setp(sys2, p)(ps, 2ones(2, 2))
1312-
@test_nowarn fn2(ones(4), 2ones(6), 4.0)
1312+
@test_nowarn fn2(ones(4), 2ones(10), 4.0)
13131313
end
13141314

13151315
# https://github.com/SciML/ModelingToolkit.jl/issues/2969
@@ -1420,7 +1420,7 @@ end
14201420
obsfn = ModelingToolkit.build_explicit_observed_function(
14211421
sys1, u + x + p[1:2]; inputs = [x...])
14221422

1423-
@test obsfn(ones(2), 2ones(2), 3ones(4), 4.0) == 6ones(2)
1423+
@test obsfn(ones(2), 2ones(2), 3ones(8), 4.0) == 6ones(2)
14241424
end
14251425

14261426
@testset "Passing `nothing` to `u0`" begin

0 commit comments

Comments
 (0)