| ▲ | issacnitin 4 days ago | |||||||
Not mutation testing — nothing is mutated. It builds both branches with instrumentation, runs the same test suite on each, and diffs the recorded arguments and return values. In that example, selectDiscount returns a different discount and the order total goes 85 → 60. Neither function is in the diff; only the sort helper is. The tests still pass — one asserts the total is positive, and 60 is positive. | ||||||||
| ▲ | gardnr 4 days ago | parent | next [-] | |||||||
Don’t run your responses through an LLM. People prefer to read your genuine words, even if it may include some incorrect English. | ||||||||
| ||||||||
| ▲ | ramon156 3 days ago | parent | prev [-] | |||||||
please try speaking in your own words. i still have no idea what this is for. is it two compare two impls? is it to "optimize" a function (i assume not since there's no mutation)? | ||||||||
| ||||||||