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

Linq mutator mutates Count to Sum #2762

Open
richardwerkman opened this issue Nov 10, 2023 · 1 comment
Open

Linq mutator mutates Count to Sum #2762

richardwerkman opened this issue Nov 10, 2023 · 1 comment
Labels
🐛 Bug Something isn't working

Comments

@richardwerkman
Copy link
Member

Describe the bug
Count is being mutated into Sum, but this results in invalid mutations most of the time.

image

Expected behavior
This is only a valid mutation in the case of an enumerable of numbers. Otherwise, this will always result in invalid muations. Maybe we can think of another mutation that does make sense in more cases. Or remove this mutation.

Context
This mutation was added in the original Linq mutator implementation #185

@richardwerkman richardwerkman added the 🐛 Bug Something isn't working label Nov 10, 2023
Copy link
Member

dupdob commented Nov 10, 2023

this may be addressed thanks to semantic context, which could identify when this is a numerical enumeration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants