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-10-27 08:30:34 -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": "fb7db31970c664ab82bcd9d1f235bc0439392f55",
"gitDir": "test/corpus/repos/ruby",
"sha2": "75d073deee7c5e20e5ca3cb0634f82235fa7793d"
}
,{
"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": "75d073deee7c5e20e5ca3cb0634f82235fa7793d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "dbde24c0eac874bf3168689e45e498d197e8bd7b"
}
,{
"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": "dbde24c0eac874bf3168689e45e498d197e8bd7b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4886593b2074430ba1d953fd33456f25818940ce"
}
,{
"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": "4886593b2074430ba1d953fd33456f25818940ce",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3f95174d38d93606bb571e73e3a78f536bfa0890"
}
,{
"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": "3f95174d38d93606bb571e73e3a78f536bfa0890",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2c4967049d318302b98998a8ec2c501401c95cd8"
}
,{
"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": "2c4967049d318302b98998a8ec2c501401c95cd8",
"gitDir": "test/corpus/repos/ruby",
"sha2": "441097bf9d2689fd72f267cf30820d1660608d82"
}
,{
"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": "441097bf9d2689fd72f267cf30820d1660608d82",
"gitDir": "test/corpus/repos/ruby",
"sha2": "db0337965c2e95881d31aa3c6d49ed54dc1a8845"
}]