Skip to content

Make dependent actions shrink #62

@MaximilianAlgehed

Description

@MaximilianAlgehed

In situations like this:

do var0 <- action $ Deploy
   var1 <- action $ Step var0
   var2 <- action $ Step var1
   var3 <- action $ Step var2

Where Step varX makes X unuseable in a future action (it consumes the input) you run into trouble when trying to shrink away Step var0, Step var1 because shrinking var3 to var0 is not valid.

To get around this one could shrink the sequence to something like this:

do var0 <- action $ Deploy
   var1 <- action $ Step var0
   var2 <- pure var1
   var3 <- action $ Step var2

which would allow two-step shrinking of var3 to var0 via var2 and var1.

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