1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/regex.json
2016-10-11 16:18:26 -04:00

287 lines
8.5 KiB
JSON

[{
"testCaseDescription": "javascript-regex-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "af8dfb899e64bd94fbe9b1d763d771e5140c1334",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5c553b5de509611f50d8cea38e7bc08712e40f84"
}
,{
"testCaseDescription": "javascript-regex-replacement-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the '/on[^/]afe/gim' regex"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "5c553b5de509611f50d8cea38e7bc08712e40f84",
"gitDir": "test/corpus/repos/javascript",
"sha2": "62fa5611314d347cba6ca512031b7e98d7ed9d29"
}
,{
"testCaseDescription": "javascript-regex-delete-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
15
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the '/on[^/]afe/gim' regex with the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "62fa5611314d347cba6ca512031b7e98d7ed9d29",
"gitDir": "test/corpus/repos/javascript",
"sha2": "405e7ab802aa3db2bac92cdb20f99bf410c57dbc"
}
,{
"testCaseDescription": "javascript-regex-replacement-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the '/one/g' regex with the '/on[^/]afe/gim' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "405e7ab802aa3db2bac92cdb20f99bf410c57dbc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4884de88825e39386b25a8e169e393739c8bce7f"
}
,{
"testCaseDescription": "javascript-regex-delete-replacement-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the '/on[^/]afe/gim' regex"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the '/one/g' regex"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the '/on[^/]afe/gim' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "4884de88825e39386b25a8e169e393739c8bce7f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c23a5a1bd35e05cad7084429ae5cca16951c4dd"
}
,{
"testCaseDescription": "javascript-regex-delete-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "6c23a5a1bd35e05cad7084429ae5cca16951c4dd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ab5b91f92abd2e34adfba5a1819cbe1c84ec0e65"
}
,{
"testCaseDescription": "javascript-regex-delete-rest-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the '/on[^/]afe/gim' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "ab5b91f92abd2e34adfba5a1819cbe1c84ec0e65",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b5b96ac96b0968b5b9d02ce5844f7274e13f3554"
}]