2016-10-27 18:30:34 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-array-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '[ 1, 2, 3]' array"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "fba342a18fffa0aa07e6efa94bbd78865f152e2a",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "f27f87e8dda43fbaeaf23377498d7ad3add5e620"
|
2016-10-27 18:30:34 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-array-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '['a', 'b', 'c']' array"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '[ 1, 2, 3]' array"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "f27f87e8dda43fbaeaf23377498d7ad3add5e620",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "5c195f22e8a087a75d33782dd06ed24dda0d60c9"
|
2016-10-27 18:30:34 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-array-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '1'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '2'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '3'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' string"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "5c195f22e8a087a75d33782dd06ed24dda0d60c9",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "8d0ab17a3cfb3ecf5ebb189711cc2eb32e73c607"
|
2016-10-27 18:30:34 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-array-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted '1'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted '2'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted '3'"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "8d0ab17a3cfb3ecf5ebb189711cc2eb32e73c607",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "203b745805e5313ec2a53cf95cd511f5ad22eb64"
|
2016-10-27 18:30:34 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-array-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '['a', 'b', 'c']' array"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '[ 1, 2, 3]' array"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '['a', 'b', 'c']' array"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "203b745805e5313ec2a53cf95cd511f5ad22eb64",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "52d8ec56aa7e6e7ad351686e12cb9bc278b2ab6d"
|
2016-10-27 18:30:34 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-array-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '[ 1, 2, 3]' array"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "52d8ec56aa7e6e7ad351686e12cb9bc278b2ab6d",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "862d71dafabd312dca56a5b61da24797436024f2"
|
2016-10-27 18:30:34 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-array-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"array.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '['a', 'b', 'c']' array"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "862d71dafabd312dca56a5b61da24797436024f2",
|
2016-10-27 18:30:34 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "73a673c5ff7f561a8ba38db6dcb6296a8f35ecb5"
|
2016-10-27 18:30:34 +03:00
|
|
|
}]
|