Skip to content

Commit d2ab769

Browse files
author
fidgetingbits
committed
fix changeBranch tests
1 parent 375ca1a commit d2ab769

File tree

4 files changed

+10
-262
lines changed

4 files changed

+10
-262
lines changed

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix/changeBranch.yml

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -14,81 +14,17 @@ initialState:
1414
documentContents: |
1515
{
1616
key = if a then b else c;
17-
key =
18-
if a
19-
then b
20-
else c;
2117
22-
a = b; # Inline comment (test)
23-
b = c; # Inline comment 2
24-
a = 1 + 1;
25-
a = a/b/c ? 0;
26-
a = b: b + 1;
27-
28-
foo = let
29-
a = b;
30-
c = d;
31-
in
32-
{
33-
output = b;
34-
};
35-
36-
bar = let
37-
a = 1;
38-
b = 2;
39-
in a + b;
40-
41-
bar =
42-
with key;
43-
let
44-
a = key;
45-
in
46-
a;
47-
48-
a = x: x + 1;
49-
b = x: y: x + y + 1;
5018
}
5119
selections:
52-
- anchor: {line: 1, character: 10}
53-
active: {line: 1, character: 10}
20+
- anchor: {line: 1, character: 9}
21+
active: {line: 1, character: 9}
5422
marks: {}
5523
finalState:
5624
documentContents: |
5725
{
5826
key = then b else c;
59-
key =
60-
if a
61-
then b
62-
else c;
63-
64-
a = b; # Inline comment (test)
65-
b = c; # Inline comment 2
66-
a = 1 + 1;
67-
a = a/b/c ? 0;
68-
a = b: b + 1;
69-
70-
foo = let
71-
a = b;
72-
c = d;
73-
in
74-
{
75-
output = b;
76-
};
77-
78-
bar = let
79-
a = 1;
80-
b = 2;
81-
in a + b;
82-
83-
bar =
84-
with key;
85-
let
86-
a = key;
87-
in
88-
a;
8927
90-
a = x: x + 1;
91-
b = x: y: x + y + 1;
9228
}
9329
selections:
9430
- anchor: {line: 1, character: 8}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix/changeBranch2.yml

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -14,81 +14,17 @@ initialState:
1414
documentContents: |
1515
{
1616
key = if a then b else c;
17-
key =
18-
if a
19-
then b
20-
else c;
2117
22-
a = b; # Inline comment (test)
23-
b = c; # Inline comment 2
24-
a = 1 + 1;
25-
a = a/b/c ? 0;
26-
a = b: b + 1;
27-
28-
foo = let
29-
a = b;
30-
c = d;
31-
in
32-
{
33-
output = b;
34-
};
35-
36-
bar = let
37-
a = 1;
38-
b = 2;
39-
in a + b;
40-
41-
bar =
42-
with key;
43-
let
44-
a = key;
45-
in
46-
a;
47-
48-
a = x: x + 1;
49-
b = x: y: x + y + 1;
5018
}
5119
selections:
52-
- anchor: {line: 1, character: 17}
53-
active: {line: 1, character: 17}
20+
- anchor: {line: 1, character: 15}
21+
active: {line: 1, character: 15}
5422
marks: {}
5523
finalState:
5624
documentContents: |
5725
{
5826
key = if a else c;
59-
key =
60-
if a
61-
then b
62-
else c;
63-
64-
a = b; # Inline comment (test)
65-
b = c; # Inline comment 2
66-
a = 1 + 1;
67-
a = a/b/c ? 0;
68-
a = b: b + 1;
69-
70-
foo = let
71-
a = b;
72-
c = d;
73-
in
74-
{
75-
output = b;
76-
};
77-
78-
bar = let
79-
a = 1;
80-
b = 2;
81-
in a + b;
82-
83-
bar =
84-
with key;
85-
let
86-
a = key;
87-
in
88-
a;
8927
90-
a = x: x + 1;
91-
b = x: y: x + y + 1;
9228
}
9329
selections:
9430
- anchor: {line: 1, character: 13}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix/changeBranch3.yml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,7 @@ initialState:
1414
documentContents: |
1515
{
1616
key = if a then b else c;
17-
key =
18-
if a
19-
then b
20-
else c;
2117
22-
a = b; # Inline comment (test)
23-
b = c; # Inline comment 2
24-
a = 1 + 1;
25-
a = a/b/c ? 0;
26-
a = b: b + 1;
27-
28-
foo = let
29-
a = b;
30-
c = d;
31-
in
32-
{
33-
output = b;
34-
};
35-
36-
bar = let
37-
a = 1;
38-
b = 2;
39-
in a + b;
40-
41-
bar =
42-
with key;
43-
let
44-
a = key;
45-
in
46-
a;
47-
48-
a = x: x + 1;
49-
b = x: y: x + y + 1;
5018
}
5119
selections:
5220
- anchor: {line: 1, character: 22}
@@ -56,39 +24,7 @@ finalState:
5624
documentContents: |
5725
{
5826
key = if a then b ;
59-
key =
60-
if a
61-
then b
62-
else c;
63-
64-
a = b; # Inline comment (test)
65-
b = c; # Inline comment 2
66-
a = 1 + 1;
67-
a = a/b/c ? 0;
68-
a = b: b + 1;
69-
70-
foo = let
71-
a = b;
72-
c = d;
73-
in
74-
{
75-
output = b;
76-
};
77-
78-
bar = let
79-
a = 1;
80-
b = 2;
81-
in a + b;
82-
83-
bar =
84-
with key;
85-
let
86-
a = key;
87-
in
88-
a;
8927
90-
a = x: x + 1;
91-
b = x: y: x + y + 1;
9228
}
9329
selections:
9430
- anchor: {line: 1, character: 20}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix/changeBranch4.yml

Lines changed: 6 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -13,83 +13,23 @@ command:
1313
initialState:
1414
documentContents: |
1515
{
16-
key = if a then b else c;
1716
key =
1817
if a
1918
then b
2019
else c;
21-
22-
a = b; # Inline comment (test)
23-
b = c; # Inline comment 2
24-
a = 1 + 1;
25-
a = a/b/c ? 0;
26-
a = b: b + 1;
27-
28-
foo = let
29-
a = b;
30-
c = d;
31-
in
32-
{
33-
output = b;
34-
};
35-
36-
bar = let
37-
a = 1;
38-
b = 2;
39-
in a + b;
40-
41-
bar =
42-
with key;
43-
let
44-
a = key;
45-
in
46-
a;
47-
48-
a = x: x + 1;
49-
b = x: y: x + y + 1;
5020
}
5121
selections:
52-
- anchor: {line: 5, character: 6}
53-
active: {line: 5, character: 6}
22+
- anchor: {line: 3, character: 6}
23+
active: {line: 3, character: 6}
5424
marks: {}
5525
finalState:
5626
documentContents: |
5727
{
58-
key = if a then b else c;
5928
key =
6029
if a
61-
then b
62-
;
63-
64-
a = b; # Inline comment (test)
65-
b = c; # Inline comment 2
66-
a = 1 + 1;
67-
a = a/b/c ? 0;
68-
a = b: b + 1;
69-
70-
foo = let
71-
a = b;
72-
c = d;
73-
in
74-
{
75-
output = b;
76-
};
77-
78-
bar = let
79-
a = 1;
80-
b = 2;
81-
in a + b;
82-
83-
bar =
84-
with key;
85-
let
86-
a = key;
87-
in
88-
a;
89-
90-
a = x: x + 1;
91-
b = x: y: x + y + 1;
30+
31+
else c;
9232
}
9333
selections:
94-
- anchor: {line: 5, character: 4}
95-
active: {line: 5, character: 4}
34+
- anchor: {line: 3, character: 4}
35+
active: {line: 3, character: 4}

0 commit comments

Comments
 (0)