1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/delimiter.json
2016-11-02 10:52:40 -07:00

1181 lines
37 KiB
JSON

[{
"testCaseDescription": "ruby-delimiter-insert-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the %q#a# string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %#a# string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q#a# string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "966ffa3a9db0de36a8dd3b0ed41c36f1265a51fd",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d3bb1d47f573ec1b29d9dddc9f60b54982ffdec3"
}
,{
"testCaseDescription": "ruby-delimiter-replacement-insert-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the %q/b/ string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %/b/ string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q/b/ string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Added the %q#a# string"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
10
]
}
},
"summary": "Added the %q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Added the %#a# string"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
6
]
}
},
"summary": "Added the %Q#a# string"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
9
]
}
},
"summary": "Added the %<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
10
]
}
},
"summary": "Added the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "d3bb1d47f573ec1b29d9dddc9f60b54982ffdec3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "294eeebf36057ee47763492452b194ea4f16819e"
}
,{
"testCaseDescription": "ruby-delimiter-delete-insert-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
6
]
},
{
"start": [
1,
1
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the %q/b/ string with the %q#a# string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the %#a# string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q#a# string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Added the %Q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %/b/ string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q/b/ string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q{d{e}f} string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "294eeebf36057ee47763492452b194ea4f16819e",
"gitDir": "test/corpus/repos/ruby",
"sha2": "438d2d9edb9d28cc39a000c4e56de84b18507caf"
}
,{
"testCaseDescription": "ruby-delimiter-replacement-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
6
]
},
{
"start": [
1,
1
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the %q#a# string with the %q/b/ string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
10
]
},
{
"start": [
3,
1
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the %q<a<b>c> string with the %/b/ string"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the %Q/b/ string"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the %{d{e}f} string"
},
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
5
]
},
{
"start": [
6,
1
],
"end": [
6,
10
]
}
]
},
"summary": "Replaced the %#a# string with the %Q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q#a# string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "438d2d9edb9d28cc39a000c4e56de84b18507caf",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e9431b323d867423099ba07608126c53119f32a1"
}
,{
"testCaseDescription": "ruby-delimiter-delete-replacement-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the %q/b/ string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %/b/ string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q/b/ string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Deleted the %q#a# string"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
10
]
}
},
"summary": "Deleted the %q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Deleted the %#a# string"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
6
]
}
},
"summary": "Deleted the %Q#a# string"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
9
]
}
},
"summary": "Deleted the %<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
12,
10
]
}
},
"summary": "Deleted the %Q<a<b>c> string"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
6
]
}
},
"summary": "Added the %q/b/ string"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
10
]
}
},
"summary": "Added the %q{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Added the %/b/ string"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
6
]
}
},
"summary": "Added the %Q/b/ string"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
9
]
}
},
"summary": "Added the %{d{e}f} string"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
10
]
}
},
"summary": "Added the %Q{d{e}f} string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "e9431b323d867423099ba07608126c53119f32a1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0ea7ce8ec3ec86540a11fbba90d58efdafbe678f"
}
,{
"testCaseDescription": "ruby-delimiter-delete-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the %q#a# string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %#a# string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q#a# string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %<a<b>c> string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q<a<b>c> string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "0ea7ce8ec3ec86540a11fbba90d58efdafbe678f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fe51a21d60a052c29e66ce05835836220c131844"
}
,{
"testCaseDescription": "ruby-delimiter-delete-rest-test",
"expectedResult": {
"changes": {
"delimiter.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the %q/b/ string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the %q{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the %/b/ string"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the %Q/b/ string"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the %{d{e}f} string"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
10
]
}
},
"summary": "Deleted the %Q{d{e}f} string"
}
]
},
"errors": {}
},
"filePaths": [
"delimiter.rb"
],
"sha1": "fe51a21d60a052c29e66ce05835836220c131844",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3c53c22b9707f1ec06bfdbe21093d2bf46996a6f"
}]