Since out of range deletions are allowed, the stats that will be created are incorrect
In [1]: from coalib.results.Diff import Diff
In [2]: a = Diff(['1', '2'])
In [3]: a.delete_lines(2,10)
In [4]: a.modified
Out[4]: ['1']
In [5]: a.stats()
Out[5]: (0, 9)
Is this an intended behavior?
hm looks indeed wrong...
Should out of range deletion be allowed?
No, it shouldn't be, thats what this issue is about
No I was bit confused about if file_list contains fragment of a file. Nvm figured out I was wrong. :sweat_smile:
Most helpful comment
No, it shouldn't be, thats what this issue is about