Skip to content

Commit eb1c901

Browse files
test: fix respecialize test
1 parent 9ede8ab commit eb1c901

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/basic_transformations.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,12 @@ foofn(x) = 4
340340

341341
@testset "`respecialize`" begin
342342
@parameters p::AbstractFoo p2(t)::AbstractFoo = p q[1:2]::AbstractFoo r
343-
rp,
344-
rp2 = let
345-
only(@parameters p::Bar),
346-
SymbolicUtils.term(operation(p2), arguments(p2)...; type = Baz)
347-
end
343+
rp = only(let p = nothing
344+
@parameters p::Bar
345+
end)
346+
rp2 = only(let p2 = nothing
347+
@parameters p2(t)::Baz
348+
end)
348349
@variables x(t) = 1.0
349350
@named sys1 = System([D(x) ~ foofn(p) + foofn(p2) + x], t, [x], [p, p2, q, r])
350351

0 commit comments

Comments
 (0)