Clean up API and small fixes
This commit is contained in:
parent
665cdb2881
commit
a80da338e4
13 changed files with 56 additions and 36 deletions
|
|
@ -60,7 +60,7 @@ fn test_diff() {
|
|||
let parent = "hello ";
|
||||
let changed = "world";
|
||||
|
||||
let result = diff(parent, &changed.into(), BuiltinTokenizer::Word);
|
||||
let result = diff(parent, &changed.into(), BuiltinTokenizer::Word).unwrap();
|
||||
|
||||
assert_eq!(result.len(), 2);
|
||||
let first: i64 = result[0].clone().try_into().unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue