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-10-31 23:14:58 +03:00
|
|
|
"sha1": "993f259dc2e7d837c15a3be86156ca09e0a9fc83",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "9f3fb52df97952240268e80f8cc39abddd315cb4"
|
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-10-31 23:14:58 +03:00
|
|
|
"sha1": "9f3fb52df97952240268e80f8cc39abddd315cb4",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "63ed2e99abb268a278d7fc6c4ccd07d91b77a3a3"
|
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-10-31 23:14:58 +03:00
|
|
|
"sha1": "63ed2e99abb268a278d7fc6c4ccd07d91b77a3a3",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "46f46765942c307c347366f1f55df6c5a7f69fc8"
|
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-10-31 23:14:58 +03:00
|
|
|
"sha1": "46f46765942c307c347366f1f55df6c5a7f69fc8",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "3ae6a1cece9f5e612806fee42c585cbe819848f4"
|
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-10-31 23:14:58 +03:00
|
|
|
"sha1": "3ae6a1cece9f5e612806fee42c585cbe819848f4",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "017a71f7fddef5ed789f98a0eb9ee34f0b264078"
|
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-10-31 23:14:58 +03:00
|
|
|
"sha1": "017a71f7fddef5ed789f98a0eb9ee34f0b264078",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "88e5d6e5eadbd8a8ee367ec4d41e0ec8dd740f45"
|
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-10-31 23:14:58 +03:00
|
|
|
"sha1": "88e5d6e5eadbd8a8ee367ec4d41e0ec8dd740f45",
|
2016-10-27 01:44:53 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-31 23:14:58 +03:00
|
|
|
"sha2": "bc13e2672c25ea9622a5b945b0f46f10c3bbc18a"
|
2016-10-27 01:44:53 +03:00
|
|
|
}]
|