Skip to content

Commit c38ab96

Browse files
Merge pull request #3744 from AayushSabharwal/as/fix-brownian
fix: fix deprecated `@brownian` not working properly
2 parents 5963a5b + 621e7ac commit c38ab96

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/deprecations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,5 @@ macro brownian(xs...)
175175
return quote
176176
Base.depwarn("`@brownian` is deprecated. Use `@brownians` instead", :brownian_macro)
177177
$(@__MODULE__).@brownians $(xs...)
178-
end
178+
end |> esc
179179
end

test/sdesystem.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,4 +948,8 @@ end
948948

949949
@testset "`@brownian` is deprecated" begin
950950
@test_deprecated @brownian a b c
951+
952+
@brownian p q
953+
@test ModelingToolkit.isbrownian(p)
954+
@test ModelingToolkit.isbrownian(q)
951955
end

0 commit comments

Comments
 (0)