mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.3 KiB
JSON
287 lines
8.3 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-number-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "616022d16e903375ee8cb705926e3130e700baa1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5d899482e4a1b162833c0beff2017cd5f954d9af"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '102'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "5d899482e4a1b162833c0beff2017cd5f954d9af",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fb905efd1a20da0aa16df3079a05d5a0d2cdf4df"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '102' with '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "fb905efd1a20da0aa16df3079a05d5a0d2cdf4df",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5ec23b61593f8f846be54c2626003199f8ba8f31"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '101' with '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "5ec23b61593f8f846be54c2626003199f8ba8f31",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "352335d1de8f6aa743824442906f595f413cf3a9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '102'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '101'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "352335d1de8f6aa743824442906f595f413cf3a9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a4653469e371e09fd2e5dd000025dd361d9a8b4b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "a4653469e371e09fd2e5dd000025dd361d9a8b4b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3327da820137920926a11e97959cad0e88da996f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"sha1": "3327da820137920926a11e97959cad0e88da996f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e3169a584f82eaedeb405338ea6175466369ab58"
|
|
}]
|