Skip to content

Docs Failing Test #562

@dylan-asmar

Description

@dylan-asmar

The docs are failing (caught with our weekly automatic run).

I have included the error below. There were some changes with Random in the 1.11 release. However, I didn't dig too deeply into the changes.

If this part of the docs is testing functionality, then I think we can remove the test for the exact value?

┌ Error: doctest failure in src/def_pomdp.md:218-228
│ 
│ ```jldoctest
│ using Random: MersenneTwister
│ using POMDPTools: ImplicitDistribution
│ 
│ rng = MersenneTwister(1)
│ 
│ d = ImplicitDistribution(rng -> (-0.2*rand(rng), 0.0))
│ rand(rng, d)
│ # output
│ (-0.047206669[13](https://github.com/JuliaPOMDP/POMDPs.jl/actions/runs/11318604248/job/31596414110#step:5:14)240939, 0.0)
│ ```
│ 
│ Subexpression:
│ 
│ using Random: MersenneTwister
│ using POMDPTools: ImplicitDistribution
│ 
│ rng = MersenneTwister(1)
│ 
│ d = ImplicitDistribution(rng -> (-0.2*rand(rng), 0.0))
│ rand(rng, d)
│ 
│ Evaluated output:
│ 
│ (-0.019827940275727363, 0.0)
│ 
│ Expected output:
│ 
│ (-0.04720666913240939, 0.0)
│ 
│   diff =
│    Warning: Diff output requires color.
│    (-0.04720666913240939, (-0.019827940275727363, 0.0)
└ @ Documenter src/def_pomdp.md:2[18](https://github.com/JuliaPOMDP/POMDPs.jl/actions/runs/11318604248/job/31596414110#step:5:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions