2016-10-19 20:33:21 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-assignment-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "d612f3b2c22e3a61996c95475ee4068b6788aac6",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "1c9ae0a1906bf64ff71afd113ca4b63449b694dc"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-assignment-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' assignment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "1c9ae0a1906bf64ff71afd113ca4b63449b694dc",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "a42f059390957aff1b99047711b88dfaf41d7f40"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-assignment-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-10-19 21:02:02 +03:00
|
|
|
"summary": "Replaced '1' with '0' in an assignment to x"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "a42f059390957aff1b99047711b88dfaf41d7f40",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "0a1376f3909ca1fee6d863e5c11e23237023288c"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-assignment-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-10-19 21:02:02 +03:00
|
|
|
"summary": "Replaced '0' with '1' in an assignment to x"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "0a1376f3909ca1fee6d863e5c11e23237023288c",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "81d8d02f30b5c8c7ebc07a57259eca99e9a52b23"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-assignment-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' assignment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' assignment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "81d8d02f30b5c8c7ebc07a57259eca99e9a52b23",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "8fd44a38d6ede818dddde32c6c7f2cc67074875e"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-assignment-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "8fd44a38d6ede818dddde32c6c7f2cc67074875e",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "02fe21e43bf1542b24bce5a063343b8cb04a5585"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-assignment-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"assignment.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"assignment.rb"
|
|
|
|
],
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha1": "02fe21e43bf1542b24bce5a063343b8cb04a5585",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 18:30:34 +03:00
|
|
|
"sha2": "838fb5d4658ff8ce58bc93c219ff0892e8e336ec"
|
2016-10-19 20:33:21 +03:00
|
|
|
}]
|