#1 2022-10-15 07:04:09

Sha
Member
From: Russia
Registered: 2012-01-07
Posts: 34
Website

Problem with TDiff

Hello AB,

using TDiff with files of string ['1','2','5'] and ['1','2','3','4','5']
I get valid result (2 add operations)

but with files of string ['1','2','3','4','5'] and ['1','2','5']
I get invalid result (1 modify and 2 delete operations)

Offline

#2 2022-10-15 12:07:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,620
Website

Re: Problem with TDiff

It is perhaps not the shortest path, but is the result correct if the diff is applied?

Offline

#3 2022-10-15 12:20:42

Sha
Member
From: Russia
Registered: 2012-01-07
Posts: 34
Website

Re: Problem with TDiff

Yes, result is correct, but is not shortest.

Offline

Board footer

Powered by FluxBB