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

New mutation type: fiddle with switch statement cases #68

Open
ZevEisenberg opened this issue Feb 15, 2019 · 0 comments
Open

New mutation type: fiddle with switch statement cases #68

ZevEisenberg opened this issue Feb 15, 2019 · 0 comments
Labels
mutation operators Work that's intended to improve the mutation operators muter has

Comments

@ZevEisenberg
Copy link
Collaborator

Before:

switch myEnum {
    case .a: doFunctionA()
    case .b: doFunctionB()
}

After:

switch myEnum {
    case .a: doFunctionB()
    case .b: doFunctionA()
}

Makes the most sense for enums without associated values. Associated values might be interesting to think about, but probably as a separate feature.

@SeanROlszewski SeanROlszewski removed this from To do in Work in progress Jun 21, 2019
@rakaramos rakaramos added the mutation operators Work that's intended to improve the mutation operators muter has label Apr 16, 2020
@rakaramos rakaramos added this to To do in Work in progress via automation Oct 21, 2023
@rakaramos rakaramos moved this from To do to Prioritized For Next Release in Work in progress Oct 21, 2023
@rakaramos rakaramos moved this from Prioritized For Next Release to To do in Work in progress Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mutation operators Work that's intended to improve the mutation operators muter has
Projects
Development

No branches or pull requests

2 participants