Skip to content

Commit

Permalink
Added doctest filter to handle the ;;] at the end of lines for matr…
Browse files Browse the repository at this point in the history
…ices
  • Loading branch information
torfjelde committed Sep 29, 2024
1 parent bcd82a9 commit cff0941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ include("test_util.jl")
# Errors from macros sometimes result in `LoadError: LoadError:`
# rather than `LoadError:`, depending on Julia version.
r"ERROR: (LoadError:\s)+",
# Older versions do not have `;;]` but instead just `]` at end of the line
# => need to treat `;;]` and `]` as the same, i.e. ignore them if at the end of a line
r"(;;){0,1}\]$"m,
]
doctest(DynamicPPL; manual=false, doctestfilters=doctestfilters)
end
Expand Down

0 comments on commit cff0941

Please sign in to comment.