1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/number.json

287 lines
8.3 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-number-insert-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added '101'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "616022d16e903375ee8cb705926e3130e700baa1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "5d899482e4a1b162833c0beff2017cd5f954d9af"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-number-replacement-insert-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added '102'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added '101'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "5d899482e4a1b162833c0beff2017cd5f954d9af",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "fb905efd1a20da0aa16df3079a05d5a0d2cdf4df"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-number-delete-insert-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '102' with '101'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "fb905efd1a20da0aa16df3079a05d5a0d2cdf4df",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "5ec23b61593f8f846be54c2626003199f8ba8f31"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-number-replacement-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '101' with '102'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "5ec23b61593f8f846be54c2626003199f8ba8f31",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "352335d1de8f6aa743824442906f595f413cf3a9"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-number-delete-replacement-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted '102'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted '101'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added '102'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "352335d1de8f6aa743824442906f595f413cf3a9",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "a4653469e371e09fd2e5dd000025dd361d9a8b4b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-number-delete-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted '101'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "a4653469e371e09fd2e5dd000025dd361d9a8b4b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "3327da820137920926a11e97959cad0e88da996f"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-number-delete-rest-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
4
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted '102'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "3327da820137920926a11e97959cad0e88da996f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "e3169a584f82eaedeb405338ea6175466369ab58"
2016-10-11 18:12:20 +03:00
}]