Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't drop actions depending on shrunk predecessors. #1

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

ChickenProp
Copy link
Owner

Upstream: hedgehogqa#453

Closes hedgehogqa#448. Suppose we have an Action list

A 1 -> Var 0
B (Var 0) -> ...

Then when we shrink A, we would previously get the list

A 0 -> Var 1
B (Var 0) -> ...

And then we'd drop B from this list, because Var 0 no longer exists.
Now shrinking will give

A 0 -> Var 0
B (Var 0) -> ...

which is fine.

This means we now generate Vars even for actions whose Require fails.

Closes hedgehogqa#448. Suppose we have an Action list

    A 1 -> Var 0
    B (Var 0) -> ...

Then when we shrink A, we would previously get the list

    A 0 -> Var 1
    B (Var 0) -> ...

And then we'd drop B from this list, because `Var 0` no longer exists.
Now shrinking will give

    A 0 -> Var 0
    B (Var 0) -> ...

which is fine.

This means we now generate Vars even for actions whose `Require` fails.
@ChickenProp ChickenProp merged commit 15dad65 into master Apr 8, 2022
@ChickenProp ChickenProp mentioned this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When a Command shrinks, later commands depending on it are dropped
1 participant