Skip to content

Bug in Shrink.list skips singleton? #483

@njlr

Description

@njlr

I was adding reports to some of the challenges in The Shrinking Challenge, namely Length List.

Hedgehog was not finding the optimal shrink, so I took a look at Shrink.list.

It appears to skip over the singleton case?

#r "nuget: Hedgehog, 2.0.3"

open Hedgehog

for xs in Shrink.list [1; 2; 3] do
  printfn "%A" xs

// []
// [2; 3]
// [1; 3]
// [1; 2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions