Skip to content

Commit cff0941

Browse files
committed
Added doctest filter to handle the ;;] at the end of lines for matrices
1 parent bcd82a9 commit cff0941

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ include("test_util.jl")
9595
# Errors from macros sometimes result in `LoadError: LoadError:`
9696
# rather than `LoadError:`, depending on Julia version.
9797
r"ERROR: (LoadError:\s)+",
98+
# Older versions do not have `;;]` but instead just `]` at end of the line
99+
# => need to treat `;;]` and `]` as the same, i.e. ignore them if at the end of a line
100+
r"(;;){0,1}\]$"m,
98101
]
99102
doctest(DynamicPPL; manual=false, doctestfilters=doctestfilters)
100103
end

0 commit comments

Comments
 (0)