rjust / defects4j

A Database of Real Faults and an Experimental Infrastructure to Enable Controlled Experiments in Software Engineering Research
MIT License
684 stars 297 forks source link

Patches in reverse format #586

Closed danielding110 closed 6 days ago

danielding110 commented 6 days ago

The patches for every single bug seems to be in a reverse format. The modification made by the fix file is denoted as -, and changes from the buggy file to the fix file is denoted as +.

Greg4cr commented 6 days ago

Hi @danielding110

This is by design. The patches introduce the bug into the "correct" version. You can think of this as a similar concept to mutation testing.