Skip to content

Commit

Permalink
Normalise recorded test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Nov 27, 2021
1 parent 3738cb7 commit 4e1c57a
Show file tree
Hide file tree
Showing 40 changed files with 311 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ command:
mark: {type: decoratedSymbol, symbolColor: default, character: h}
extraArgs: []
initialState:
documentContents: " hello world\n value = {a:2}"
documentContents: |2-
hello world
value = {a:2}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Expand All @@ -23,7 +25,9 @@ initialState:
start: {line: 0, character: 4}
end: {line: 0, character: 9}
finalState:
documentContents: " {a:2}\n value = {a:2}"
documentContents: |2-
{a:2}
value = {a:2}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ command:
mark: {type: decoratedSymbol, symbolColor: default, character: h}
extraArgs: []
initialState:
documentContents: " hello\n value = {a:2}"
documentContents: |2-
hello
value = {a:2}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Expand All @@ -23,7 +25,9 @@ initialState:
start: {line: 0, character: 4}
end: {line: 0, character: 9}
finalState:
documentContents: " {a:2}\n value = {a:2}"
documentContents: |2-
{a:2}
value = {a:2}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ command:
mark: {type: decoratedSymbol, symbolColor: default, character: a}
extraArgs: []
initialState:
documentContents: " hello\n value = {a:2}"
documentContents: |2-
hello
value = {a:2}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Expand All @@ -23,7 +25,9 @@ initialState:
start: {line: 1, character: 13}
end: {line: 1, character: 14}
finalState:
documentContents: " hello\n value = hello"
documentContents: |2-
hello
value = hello
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeAttribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: attribute}
extraArgs: []
initialState:
documentContents: "[[nodiscard]]\nint f(int a = 1) {\n}\n"
documentContents: |
[[nodiscard]]
int f(int a = 1) {
}
selections:
- anchor: {line: 0, character: 9}
active: {line: 0, character: 9}
marks: {}
finalState:
documentContents: "[[nodiscard]]\nint f(int a = 1) {\n}\n"
documentContents: |
[[nodiscard]]
int f(int a = 1) {
}
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 13}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeFunkName.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: functionName}
extraArgs: []
initialState:
documentContents: "int f(int a, int b) {\n \n}"
documentContents: |-
int f(int a, int b) {
}
selections:
- anchor: {line: 1, character: 4}
active: {line: 1, character: 4}
marks: {}
finalState:
documentContents: "int f(int a, int b) {\n \n}"
documentContents: |-
int f(int a, int b) {
}
selections:
- anchor: {line: 0, character: 4}
active: {line: 0, character: 5}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeFunkName2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: functionName}
extraArgs: []
initialState:
documentContents: "int C::f(int a, int b) {\n \n}"
documentContents: |-
int C::f(int a, int b) {
}
selections:
- anchor: {line: 1, character: 4}
active: {line: 1, character: 4}
marks: {}
finalState:
documentContents: "int C::f(int a, int b) {\n \n}"
documentContents: |-
int C::f(int a, int b) {
}
selections:
- anchor: {line: 0, character: 7}
active: {line: 0, character: 8}
Expand Down
14 changes: 12 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeIf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ command:
modifier: {type: containingScope, scopeType: ifStatement}
extraArgs: []
initialState:
documentContents: "void f() {\n if (true) {\n \n }\n}"
documentContents: |-
void f() {
if (true) {
}
}
selections:
- anchor: {line: 2, character: 8}
active: {line: 2, character: 8}
marks: {}
finalState:
documentContents: "void f() {\n if (true) {\n \n }\n}"
documentContents: |-
void f() {
if (true) {
}
}
selections:
- anchor: {line: 1, character: 4}
active: {line: 3, character: 5}
Expand Down
14 changes: 12 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeIf2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ command:
modifier: {type: containingScope, scopeType: ifStatement}
extraArgs: []
initialState:
documentContents: "void f() {\n if constexpr (true) {\n \n }\n}"
documentContents: |-
void f() {
if constexpr (true) {
}
}
selections:
- anchor: {line: 2, character: 8}
active: {line: 2, character: 8}
marks: {}
finalState:
documentContents: "void f() {\n if constexpr (true) {\n \n }\n}"
documentContents: |-
void f() {
if constexpr (true) {
}
}
selections:
- anchor: {line: 1, character: 4}
active: {line: 3, character: 5}
Expand Down
16 changes: 14 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeItem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,25 @@ command:
modifier: {type: containingScope, scopeType: collectionItem}
extraArgs: []
initialState:
documentContents: "void f() {\n std::vector<int> v {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
std::vector<int> v {
1 + 2,
3
};
}
selections:
- anchor: {line: 2, character: 10}
active: {line: 2, character: 10}
marks: {}
finalState:
documentContents: "void f() {\n std::vector<int> v {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
std::vector<int> v {
1 + 2,
3
};
}
selections:
- anchor: {line: 2, character: 8}
active: {line: 2, character: 13}
Expand Down
16 changes: 14 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeItem2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,25 @@ command:
modifier: {type: containingScope, scopeType: collectionItem}
extraArgs: []
initialState:
documentContents: "void f() {\n int arr[] = {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
int arr[] = {
1 + 2,
3
};
}
selections:
- anchor: {line: 2, character: 11}
active: {line: 2, character: 11}
marks: {}
finalState:
documentContents: "void f() {\n int arr[] = {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
int arr[] = {
1 + 2,
3
};
}
selections:
- anchor: {line: 2, character: 8}
active: {line: 2, character: 13}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeLambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: anonymousFunction}
extraArgs: []
initialState:
documentContents: "void f() {\n [](){}();\n}\n"
documentContents: |
void f() {
[](){}();
}
selections:
- anchor: {line: 1, character: 7}
active: {line: 1, character: 7}
marks: {}
finalState:
documentContents: "void f() {\n [](){}();\n}\n"
documentContents: |
void f() {
[](){}();
}
selections:
- anchor: {line: 1, character: 4}
active: {line: 1, character: 10}
Expand Down
16 changes: 14 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeList.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,25 @@ command:
modifier: {type: containingScope, scopeType: list}
extraArgs: []
initialState:
documentContents: "void f() {\n std::vector<int> v {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
std::vector<int> v {
1 + 2,
3
};
}
selections:
- anchor: {line: 2, character: 11}
active: {line: 2, character: 11}
marks: {}
finalState:
documentContents: "void f() {\n std::vector<int> v {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
std::vector<int> v {
1 + 2,
3
};
}
selections:
- anchor: {line: 1, character: 23}
active: {line: 4, character: 5}
Expand Down
16 changes: 14 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeList2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,25 @@ command:
modifier: {type: containingScope, scopeType: list}
extraArgs: []
initialState:
documentContents: "void f() {\n int arr[] = {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
int arr[] = {
1 + 2,
3
};
}
selections:
- anchor: {line: 2, character: 12}
active: {line: 2, character: 12}
marks: {}
finalState:
documentContents: "void f() {\n int arr[] = {\n 1 + 2,\n 3\n };\n}"
documentContents: |-
void f() {
int arr[] = {
1 + 2,
3
};
}
selections:
- anchor: {line: 1, character: 16}
active: {line: 4, character: 5}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeName.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: name}
extraArgs: []
initialState:
documentContents: "void f() {\n int i = 1;\n}"
documentContents: |-
void f() {
int i = 1;
}
selections:
- anchor: {line: 1, character: 13}
active: {line: 1, character: 13}
marks: {}
finalState:
documentContents: "void f() {\n int i = 1;\n}"
documentContents: |-
void f() {
int i = 1;
}
selections:
- anchor: {line: 1, character: 8}
active: {line: 1, character: 9}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeName2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: name}
extraArgs: []
initialState:
documentContents: "void f(int i = 1) {\n \n}"
documentContents: |-
void f(int i = 1) {
}
selections:
- anchor: {line: 0, character: 15}
active: {line: 0, character: 15}
marks: {}
finalState:
documentContents: "void f(int i = 1) {\n \n}"
documentContents: |-
void f(int i = 1) {
}
selections:
- anchor: {line: 0, character: 11}
active: {line: 0, character: 12}
Expand Down
10 changes: 8 additions & 2 deletions src/test/suite/fixtures/recorded/languages/cpp/takeName3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ command:
modifier: {type: containingScope, scopeType: name}
extraArgs: []
initialState:
documentContents: "void f(int i = 1) {\n \n}"
documentContents: |-
void f(int i = 1) {
}
selections:
- anchor: {line: 1, character: 4}
active: {line: 1, character: 4}
marks: {}
finalState:
documentContents: "void f(int i = 1) {\n \n}"
documentContents: |-
void f(int i = 1) {
}
selections:
- anchor: {line: 0, character: 5}
active: {line: 0, character: 6}
Expand Down
Loading

0 comments on commit 4e1c57a

Please sign in to comment.