Skip to content

Commit 948f38c

Browse files
test: fix input output tests
1 parent ab023f6 commit 948f38c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/input_output_handling.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ x0 = randn(5)
348348
x1 = copy(x0) + x_add # add disturbance state perturbation
349349
u = randn(1)
350350
pn = MTKParameters(io_sys, [])
351-
xp0 = f(x0, u, pn, 0)
352-
xp1 = f(x1, u, pn, 0)
351+
xp0 = f[1](x0, u, pn, 0)
352+
xp1 = f[1](x1, u, pn, 0)
353353

354354
@test xp0 matrices.A * x0 + matrices.B * [u; 0]
355355
@test xp1 matrices.A * x1 + matrices.B * [u; 0]
@@ -459,5 +459,5 @@ end
459459
p = MTKParameters(io_sys, [])
460460
u = [1.0]
461461
x = [1.0]
462-
@test_nowarn f(x, u, p, 0.0)
462+
@test_nowarn f[1](x, u, p, 0.0)
463463
end

0 commit comments

Comments
 (0)