MasterDuke17 / Text-Diff-Sift4

A Raku implementation of the Sift4 string distance algorithm
Artistic License 2.0
2 stars 2 forks source link

Wrong distance returned if strings differ in the beginning #3

Closed AlexDaniel closed 7 years ago

AlexDaniel commented 7 years ago

Code:

use Text::Diff::Sift4;
say sift4(‘bisectable6’, ‘disectable6’)

Result:

7

7 is definitely wrong. Online tool returns 1 which makes sense.