2016-10-27 01:44:53 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-regex-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '/^(foo|bar[^_])$/i' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "02d787fa2658b856b72327a657d2f25d8613317f",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "10da69aaf79480cd769414dced12f0cafaf2125d"
|
2016-10-27 01:44:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-regex-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '%r/a/' regex"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '%r<a<b>c>' regex"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '/^(foo|bar[^_])$/i' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "10da69aaf79480cd769414dced12f0cafaf2125d",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "043f7771696ecd0e4c70de831ef71a8e9a93f054"
|
2016-10-27 01:44:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-regex-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the '%r/a/' regex with the '/^(foo|bar[^_])$/i' regex"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '%r<a<b>c>' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "043f7771696ecd0e4c70de831ef71a8e9a93f054",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "f28f3669cd8e6aab1865ff8d3a75d0badbcf5450"
|
2016-10-27 01:44:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-regex-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the '/^(foo|bar[^_])$/i' regex with the '%r/a/' regex"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '%r<a<b>c>' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "f28f3669cd8e6aab1865ff8d3a75d0badbcf5450",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "a4fce2a2c06453f96f8c269a663fb493986482fe"
|
2016-10-27 01:44:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-regex-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '/^(foo|bar[^_])$/i' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "a4fce2a2c06453f96f8c269a663fb493986482fe",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "3a4f149e07de79517af25ad4d9073b757eb92da0"
|
2016-10-27 01:44:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-regex-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '/^(foo|bar[^_])$/i' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "3a4f149e07de79517af25ad4d9073b757eb92da0",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "d711a79d268565f1362ec817eddaa18841354543"
|
2016-10-27 01:44:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-regex-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"regex.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '%r/a/' regex"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '%r<a<b>c>' regex"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"regex.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "d711a79d268565f1362ec817eddaa18841354543",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "fba342a18fffa0aa07e6efa94bbd78865f152e2a"
|
2016-10-27 01:44:53 +03:00
|
|
|
}]
|