Skip to content

Commit dd52118

Browse files
committed
[diff/patience] more test-coverage checks
1 parent 68bd133 commit dd52118

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

diff/patience.test.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ const testDiffAuto = (a, b, expect) => {
1818
* @param {t.TestCase} _tc
1919
*/
2020
export const testDiffing = _tc => {
21+
testDiffAuto(
22+
'z d a b c',
23+
'y d b a c',
24+
[{
25+
insert: 'y',
26+
remove: 'z',
27+
index: 0
28+
}, {
29+
insert: 'b ',
30+
remove: '',
31+
index: 4
32+
}, {
33+
insert: '',
34+
remove: ' b',
35+
index: 5
36+
}]
37+
)
2138
testDiffAuto(
2239
'a b c',
2340
'b a c',

0 commit comments

Comments
 (0)