1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/regex.json
2016-10-27 10:07:24 -07:00

317 lines
9.4 KiB
JSON

[{
"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"
],
"sha1": "9150744eb0a99e1fd78eb52ecca992f36ad1b418",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d134778ef7e5b7dcc55f13cb91e78cece8867c47"
}
,{
"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"
],
"sha1": "d134778ef7e5b7dcc55f13cb91e78cece8867c47",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9080b137284d062ea145c1609e2d5a768d75f351"
}
,{
"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"
],
"sha1": "9080b137284d062ea145c1609e2d5a768d75f351",
"gitDir": "test/corpus/repos/ruby",
"sha2": "262d6bfa33c1d1c5b1bcb582286d3aa52d3f7cd3"
}
,{
"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"
],
"sha1": "262d6bfa33c1d1c5b1bcb582286d3aa52d3f7cd3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1df75883e377335b10323f7659d6cad0935d15e4"
}
,{
"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"
],
"sha1": "1df75883e377335b10323f7659d6cad0935d15e4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "af093ab51045a205049d86b333a9f0c92ac8bda2"
}
,{
"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"
],
"sha1": "af093ab51045a205049d86b333a9f0c92ac8bda2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "12e20f01e84dc3c71de405a764ef00b6aae1dd53"
}
,{
"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"
],
"sha1": "12e20f01e84dc3c71de405a764ef00b6aae1dd53",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9fba7cef337267dbe7922eba1d421072ed67a694"
}]