1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/regex.json

317 lines
9.4 KiB
JSON
Raw Normal View History

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-02 20:52:40 +03:00
"sha1": "d9a7f64e2e53a08c0edc907c3748a1ebc305f16b",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "c544dde12a655fc6a2bd819b4702bb558ca522a9"
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-02 20:52:40 +03:00
"sha1": "c544dde12a655fc6a2bd819b4702bb558ca522a9",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "cd0827bb0f6dac33cb1e658ff7be064662a2ee3c"
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-02 20:52:40 +03:00
"sha1": "cd0827bb0f6dac33cb1e658ff7be064662a2ee3c",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "ed4137c39541abee6dc24546e571b31d8fbb63e0"
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-02 20:52:40 +03:00
"sha1": "ed4137c39541abee6dc24546e571b31d8fbb63e0",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "feaacd65d680a1970492ceb42f7a516339e72693"
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-02 20:52:40 +03:00
"sha1": "feaacd65d680a1970492ceb42f7a516339e72693",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "2f710a52dfc1e3f02a9e4b0bbcda8852e64f7ecc"
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-02 20:52:40 +03:00
"sha1": "2f710a52dfc1e3f02a9e4b0bbcda8852e64f7ecc",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "39b8dfdc80318e83ed647b1ef6bab4144ad7b47b"
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-02 20:52:40 +03:00
"sha1": "39b8dfdc80318e83ed647b1ef6bab4144ad7b47b",
2016-10-27 01:44:53 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "94349aa3f15f41ff0090de5c2b54938e837ff3a3"
2016-10-27 01:44:53 +03:00
}]