Skip to content

Commit

Permalink
test: promote duplicate removal in test
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Oct 3, 2024
1 parent 4d3fe5d commit 198a59c
Showing 1 changed file with 31 additions and 211 deletions.
242 changes: 31 additions & 211 deletions ocaml-lsp-server/test/e2e/__tests__/textDocument-selectionRange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,6 @@ Array [
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"range": Object {
"end": Object {
"character": 17,
"line": 3,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 17,
"line": 3,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 17,
Expand Down Expand Up @@ -170,38 +146,14 @@ Array [
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"range": Object {
"end": Object {
"character": 3,
"line": 6,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 3,
"line": 6,
},
"start": Object {
"character": 0,
"line": 3,
},
},
},
"range": Object {
"end": Object {
"character": 3,
"line": 6,
},
"start": Object {
"character": 0,
"line": 3,
"line": 0,
},
},
},
Expand All @@ -211,19 +163,19 @@ Array [
"line": 6,
},
"start": Object {
"character": 11,
"character": 0,
"line": 3,
},
},
},
"range": Object {
"end": Object {
"character": 24,
"line": 5,
"character": 3,
"line": 6,
},
"start": Object {
"character": 2,
"line": 4,
"character": 11,
"line": 3,
},
},
},
Expand All @@ -234,7 +186,7 @@ Array [
},
"start": Object {
"character": 2,
"line": 5,
"line": 4,
},
},
},
Expand Down Expand Up @@ -293,72 +245,36 @@ Array [
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"range": Object {
"end": Object {
"character": 4,
"line": 3,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 4,
"line": 3,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 4,
"line": 3,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 4,
"line": 3,
},
"start": Object {
"character": 11,
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 3,
"character": 4,
"line": 3,
},
"start": Object {
"character": 21,
"character": 11,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 39,
"line": 2,
"character": 3,
"line": 3,
},
"start": Object {
"character": 2,
"line": 1,
"character": 21,
"line": 0,
},
},
},
Expand All @@ -369,7 +285,7 @@ Array [
},
"start": Object {
"character": 2,
"line": 2,
"line": 1,
},
},
},
Expand Down Expand Up @@ -446,73 +362,25 @@ Array [
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"range": Object {
"end": Object {
"character": 3,
"line": 2,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 3,
"line": 2,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 3,
"line": 2,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 3,
"line": 2,
},
"start": Object {
"character": 11,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 35,
"line": 1,
"character": 3,
"line": 2,
},
"start": Object {
"character": 4,
"line": 1,
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 35,
"line": 1,
"character": 3,
"line": 2,
},
"start": Object {
"character": 4,
"line": 1,
"character": 11,
"line": 0,
},
},
},
Expand Down Expand Up @@ -555,7 +423,7 @@ Array [
"line": 1,
},
"start": Object {
"character": 20,
"character": 34,
"line": 1,
},
},
Expand All @@ -578,62 +446,14 @@ Array [
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"parent": Object {
"range": Object {
"end": Object {
"character": 2,
"line": 2,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 2,
"line": 2,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 2,
"line": 2,
},
"start": Object {
"character": 0,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 2,
"line": 2,
},
"start": Object {
"character": 11,
"line": 0,
},
},
},
"range": Object {
"end": Object {
"character": 2,
"line": 2,
},
"start": Object {
"character": 4,
"line": 1,
"character": 0,
"line": 0,
},
},
},
Expand All @@ -643,8 +463,8 @@ Array [
"line": 2,
},
"start": Object {
"character": 4,
"line": 1,
"character": 11,
"line": 0,
},
},
},
Expand Down Expand Up @@ -683,11 +503,11 @@ Array [
},
"range": Object {
"end": Object {
"character": 2,
"line": 2,
"character": 35,
"line": 1,
},
"start": Object {
"character": 20,
"character": 34,
"line": 1,
},
},
Expand Down

0 comments on commit 198a59c

Please sign in to comment.