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-11-02 20:52:40 +03:00
|
|
|
"sha1": "39ab06168d03371d3da338d16260edae15587624",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "2200128f75fb68ac92ed5c92714721fc531440ca"
|
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-11-02 20:52:40 +03:00
|
|
|
"sha1": "2200128f75fb68ac92ed5c92714721fc531440ca",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "236dd3e485c12472eb020f66fc06a09c51383796"
|
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-11-02 20:52:40 +03:00
|
|
|
"sha1": "236dd3e485c12472eb020f66fc06a09c51383796",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "6ba82836a4ab3045b20f059df4d027f42c1a6198"
|
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-11-02 20:52:40 +03:00
|
|
|
"sha1": "6ba82836a4ab3045b20f059df4d027f42c1a6198",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "b07d2454922661935fe5dd9f8d5b80e769857343"
|
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-11-02 20:52:40 +03:00
|
|
|
"sha1": "b07d2454922661935fe5dd9f8d5b80e769857343",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "185f57b46dada3627919f9a03d7d3eaa48d1ba97"
|
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-11-02 20:52:40 +03:00
|
|
|
"sha1": "185f57b46dada3627919f9a03d7d3eaa48d1ba97",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "2c489827c048884448b71cc626aa46c57c21db01"
|
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-11-02 20:52:40 +03:00
|
|
|
"sha1": "2c489827c048884448b71cc626aa46c57c21db01",
|
2016-10-19 20:33:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "61f2c143a6d54b0ca0f82f4bbf8a5da6e761bbde"
|
2016-10-19 20:33:21 +03:00
|
|
|
}]
|