Closed adelbertc closed 7 years ago
Some notes:
redecorate
fails comonad laws without my fix to the generatorredecorate
pass the comonad laws fine (at least it hasn't failed on a couple of runs on my machine)GraphGen.genGDecomp
is not fixed properly. It can still generate a graph that doesn't contain the vertex (or the adjacent nodes) in the context. Here is a proper solution:
def genGDecomp[N: Arbitrary, A: Arbitrary, B: Arbitrary]: Gen[GDecomp[N, A, B]] = for {
g <- graphGen[N, A, B] if !g.isEmpty
n <- Gen.oneOf(g.nodes)
} yield g.decomp(n).toGDecomp.get
Thanks! Folded into #27 so we can minimize release churn.
/cc @runarorama