1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/delimiter.json
2016-11-03 14:27:47 -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": "5e604efe7390dd958461a9023552c2856174622a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "eddfeaf48b66dc81d96807670e4bc9681e07172b"
}
,{
"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": "eddfeaf48b66dc81d96807670e4bc9681e07172b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "567d758e6e3af6ea102afbfda274e0f20a7cd689"
}
,{
"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": "567d758e6e3af6ea102afbfda274e0f20a7cd689",
"gitDir": "test/corpus/repos/ruby",
"sha2": "7824ca841d44f584af678a570cfee0fc5890489a"
}
,{
"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": "7824ca841d44f584af678a570cfee0fc5890489a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "714ab35b3983256fa76237dea6d0f66488aa3d57"
}
,{
"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": "714ab35b3983256fa76237dea6d0f66488aa3d57",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4feb626c6451bcc54fd27e53d65b6113769490f6"
}
,{
"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": "4feb626c6451bcc54fd27e53d65b6113769490f6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4c29738c5fb945fd25bbcf6f07ef3ec2432a3d81"
}
,{
"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": "4c29738c5fb945fd25bbcf6f07ef3ec2432a3d81",
"gitDir": "test/corpus/repos/ruby",
"sha2": "185e7c7a223bdfca3c8cf6068abbcbe3558f859b"
}]