1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/number.json
2016-10-11 11:54:47 -04:00

309 lines
9.3 KiB
JSON

[{
"testCaseDescription": "javascript-number-insert-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
},
"summary": "Added '101'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "ede522a00f4676035db2e9d76a9b702e5234917a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "38114803fec2d221d3d6e204766200b7b04e0e27"
}
,{
"testCaseDescription": "javascript-number-replacement-insert-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
},
"summary": "Added '102'",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "number.js",
"end": [
2,
4
]
}
},
"summary": "Added '101'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "38114803fec2d221d3d6e204766200b7b04e0e27",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1545918b32f8c704efe91e7655442e328f98f43d"
}
,{
"testCaseDescription": "javascript-number-delete-insert-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
]
},
"summary": "Replaced '102' with '101'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "1545918b32f8c704efe91e7655442e328f98f43d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c9fbddc95fbbb9a1acb697c5c072b8ffbe163336"
}
,{
"testCaseDescription": "javascript-number-replacement-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
]
},
"summary": "Replaced '101' with '102'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "c9fbddc95fbbb9a1acb697c5c072b8ffbe163336",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e27818b8f53204e17eb88985eaf49c9ea8ef4726"
}
,{
"testCaseDescription": "javascript-number-delete-replacement-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
},
"summary": "Deleted '102'",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "number.js",
"end": [
2,
4
]
}
},
"summary": "Deleted '101'",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "number.js",
"end": [
2,
4
]
}
},
"summary": "Added '102'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "e27818b8f53204e17eb88985eaf49c9ea8ef4726",
"gitDir": "test/corpus/repos/javascript",
"sha2": "246413aa97cfb3cfec1874000969cd4374373f15"
}
,{
"testCaseDescription": "javascript-number-delete-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
},
"summary": "Deleted '101'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "246413aa97cfb3cfec1874000969cd4374373f15",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f0b25a1412833d0cdec38e7b8306ab6310704e72"
}
,{
"testCaseDescription": "javascript-number-delete-rest-test",
"expectedResult": {
"changes": {
"number.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "number.js",
"end": [
1,
4
]
}
},
"summary": "Deleted '102'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"number.js"
],
"sha1": "f0b25a1412833d0cdec38e7b8306ab6310704e72",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6539b8361c59312164d8321ca3888c0511fcf849"
}]