we are just playing around a bit with mutation testing and there is one thing I don't understand. Why is it always trying to apply the "Negated Conditional Mutator" on my for-each loops like this one:
for (final Order order : orders)
If I take a look at the description of the mutator (http://pitest.org/quickstart/mutators/#NEGATE_CONDITIONALS), then it should just mutate conditions like !=
to ==
or <
to >=
. So I don't really understand why it's used there and why it sometimes fails and sometimes doesn't.
Could someone explain this to me, please?