()
| 65 | } |
| 66 | |
| 67 | fn main() { |
| 68 | let source = "abce"; |
| 69 | let target = "adcf"; |
| 70 | let distance = edit_distance(source, target); |
| 71 | println!("distance between {source} and {target}: {distance}"); |
| 72 | |
| 73 | let source = "bdfc"; |
| 74 | let target = "adcf"; |
| 75 | let distance = edit_distance(source, target); |
| 76 | println!("distance between {source} and {target}: {distance}"); |
| 77 | |
| 78 | let source = "abced"; |
| 79 | let target = "adcf"; |
| 80 | let distance = edit_distance2(source, target); |
| 81 | println!("distance between {source} and {target}: {distance}"); |
| 82 | } |
nothing calls this directly
no test coverage detected