From 621e7ac88da5ce1d26344a304a184c7609a1bcb2 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 17 Jun 2025 14:33:24 +0530 Subject: [PATCH] fix: fix deprecated `@brownian` not working properly --- src/deprecations.jl | 2 +- test/sdesystem.jl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/deprecations.jl b/src/deprecations.jl index 56c166f575..7ccd323060 100644 --- a/src/deprecations.jl +++ b/src/deprecations.jl @@ -175,5 +175,5 @@ macro brownian(xs...) return quote Base.depwarn("`@brownian` is deprecated. Use `@brownians` instead", :brownian_macro) $(@__MODULE__).@brownians $(xs...) - end + end |> esc end diff --git a/test/sdesystem.jl b/test/sdesystem.jl index f60e3a9777..f3bb3ba9c9 100644 --- a/test/sdesystem.jl +++ b/test/sdesystem.jl @@ -948,4 +948,8 @@ end @testset "`@brownian` is deprecated" begin @test_deprecated @brownian a b c + + @brownian p q + @test ModelingToolkit.isbrownian(p) + @test ModelingToolkit.isbrownian(q) end