diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-08-11 18:37:24 -0700 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-08-11 19:00:02 -0700 |
commit | aadf22c53fd5d9acc38b75afa8586eae099fb98a (patch) | |
tree | 2dc7ae511d215b5086dbb887ac4187f945a59fa8 /src/edits.rs | |
parent | 72715c728f07d6a9551a860f84891cc786100777 (diff) |
Add failing test of edits inference
Diffstat (limited to 'src/edits.rs')
-rw-r--r-- | src/edits.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/edits.rs b/src/edits.rs index 63869b41..2a62129a 100644 --- a/src/edits.rs +++ b/src/edits.rs @@ -483,6 +483,27 @@ mod tests { ); } + #[test] + fn test_infer_edits_10() { + assert_edits( + vec!["so it is safe to read the commit number from any one of them."], + vec!["so it is safe to read build info from any one of them."], + ( + vec![vec![ + (MinusNoop, "so it is safe to read"), + (Deletion, "the commit number"), + (MinusNoop, "from any one of them."), + ]], + vec![vec![ + (PlusNoop, "so it is safe to read"), + (Insertion, "build info"), + (PlusNoop, "from any one of them."), + ]], + ), + 1.0, + ); + } + fn assert_edits( minus_lines: Vec<&str>, plus_lines: Vec<&str>, |