go-gremlins / gremlins

A mutation testing tool for Go.
https://gremlins.dev
Apache License 2.0
187 stars 17 forks source link

[bug] Wrong LIVED CONDITIONALS_NEGATION #224

Open antonmedv opened 8 months ago

antonmedv commented 8 months ago

🐞Bug Report

Bug Description

Got this

LIVED CONDITIONALS_NEGATION at vm/vm.go:271:12

To Reproduce

Steps to reproduce the behavior:

Run in https://github.com/expr-lang/expr

But at vm.go:271:

-           if size <= 0 {
+           if !(size <= 0) {
                size = 0
            }

This change causes errors in tests.

rusinikita commented 7 months ago

Hi! Mutation causes test fail. Did I understand right?

antonmedv commented 7 months ago

Yes.