Update various_resolve_strategies test

The weird disjoint `Indel`s are likely an artifact of the tree diffing
algorithm we use.
This commit is contained in:
DropDemBits 2023-12-10 20:33:32 -05:00
parent c486637ec5
commit 1506435f65
No known key found for this signature in database
GPG Key ID: 7FE02A6C1EDFA075

View File

@ -504,16 +504,33 @@ pub fn test_some_range(a: int) -> bool {
TextEdit {
indels: [
Indel {
insert: "let $0var_name = 5;\n ",
delete: 45..45,
insert: "let",
delete: 45..47,
},
Indel {
insert: "var_name",
delete: 59..60,
delete: 48..60,
},
Indel {
insert: "=",
delete: 61..81,
},
Indel {
insert: "5;\n if let 2..6 = var_name {\n true\n } else {\n false\n }",
delete: 82..108,
},
],
},
None,
Some(
SnippetEdit(
[
(
0,
49..49,
),
],
),
),
),
},
file_system_edits: [],
@ -566,16 +583,33 @@ pub fn test_some_range(a: int) -> bool {
TextEdit {
indels: [
Indel {
insert: "let $0var_name = 5;\n ",
delete: 45..45,
insert: "let",
delete: 45..47,
},
Indel {
insert: "var_name",
delete: 59..60,
delete: 48..60,
},
Indel {
insert: "=",
delete: 61..81,
},
Indel {
insert: "5;\n if let 2..6 = var_name {\n true\n } else {\n false\n }",
delete: 82..108,
},
],
},
None,
Some(
SnippetEdit(
[
(
0,
49..49,
),
],
),
),
),
},
file_system_edits: [],