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

Mutator for numbers #2849

Open
Liam-Rougoor opened this issue Feb 16, 2024 · 1 comment · May be fixed by #2968
Open

Mutator for numbers #2849

Liam-Rougoor opened this issue Feb 16, 2024 · 1 comment · May be fixed by #2968
Assignees
Labels
Area: Mutator new mutators or change to existing one 🚀 Feature request New feature or request

Comments

@Liam-Rougoor
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Similar to the StringMutator, we could mutate numbers.

Describe the solution you'd like
I'd like to see a mutator for numbers. Example mutations could be:

Original Mutation
var x = 10; var x = 0;
var x = 10; var x = -10;

With semantic model, we could add some mutations on numeric variables as well:

Original Mutation
var x = myNumericVariable; var x = -myNumericVariable;

This example might be bad if myNumericVariable equals 0..

@Liam-Rougoor Liam-Rougoor added 🚀 Feature request New feature or request Area: Mutator new mutators or change to existing one labels Feb 16, 2024
@richardwerkman
Copy link
Member

That mutation on numeric variables is less useful, and prone to unkillable mutants. But the first ones we could definitely add.

@YVbakker YVbakker self-assigned this Jun 18, 2024
@YVbakker YVbakker linked a pull request Jun 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Mutator new mutators or change to existing one 🚀 Feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants