mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
287 lines
8.5 KiB
JSON
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": "97a7c83a9e020ac198c1fbf23d38b3089f4484b1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7f8c1785dae66151e5dd0a4d623d23aba69ee46b"
|
|
}
|
|
,{
|
|
"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": "7f8c1785dae66151e5dd0a4d623d23aba69ee46b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c983dec6883ab781783d20943e8751acca12e517"
|
|
}
|
|
,{
|
|
"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": "c983dec6883ab781783d20943e8751acca12e517",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7afab11946dbc25be5a0bd44395e35c43a52dce5"
|
|
}
|
|
,{
|
|
"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": "7afab11946dbc25be5a0bd44395e35c43a52dce5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "555b1cad7a4da4e9a9efe0c97f6a1896e4e16aa2"
|
|
}
|
|
,{
|
|
"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": "555b1cad7a4da4e9a9efe0c97f6a1896e4e16aa2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "035f601809f5818ed358b56e52e2d3888b51de9a"
|
|
}
|
|
,{
|
|
"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": "035f601809f5818ed358b56e52e2d3888b51de9a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "725dc154b47967e008f928e59eb777bab1a08d59"
|
|
}
|
|
,{
|
|
"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": "725dc154b47967e008f928e59eb777bab1a08d59",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dc9aa0f5ce2176319c7eb9475db8787876afb4d9"
|
|
}]
|