Adjust scoring

This commit is contained in:
Antonio Scandurra 2023-08-23 13:26:30 +02:00
parent aa6d6582fd
commit 2e1a4b2591

View file

@ -79,7 +79,7 @@ pub struct Diff {
impl Diff {
const INSERTION_SCORE: isize = -1;
const DELETION_SCORE: isize = -4;
const EQUALITY_SCORE: isize = 5;
const EQUALITY_SCORE: isize = 15;
pub fn new(old: String) -> Self {
let old = old.chars().collect::<Vec<_>>();