Is there a way to test individual `jldoctests`?

I am using Documenter.jl for the first time and my attempts at using jldoctest aren’t very good. There are a lot of failures.

It would be nice to debug these failures one by one, say

"""
    foo(x)

Returns 1

```jldoctest
julia> foo("a")
1
```
"""
foo(x) = 2

How is there some way to use jldoctest to debug failures like the above?

Copy-paste it to the REPL?

1 Like

yup…

Also don’t use random number generators if they aren’t absolutely necessary.

1 Like