mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +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": "f5a546c68e4e82d0b350e3e9674659e65c938c55",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "47960ec40f3ccbcb1153c70f228c9938575ab8ad"
|
|
}
|
|
,{
|
|
"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": "47960ec40f3ccbcb1153c70f228c9938575ab8ad",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "06220f52068d26a6bcf0d23f6be481825f7923a4"
|
|
}
|
|
,{
|
|
"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": "06220f52068d26a6bcf0d23f6be481825f7923a4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "404abb4553e8356df1399600d506705c6c9b3ab6"
|
|
}
|
|
,{
|
|
"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": "404abb4553e8356df1399600d506705c6c9b3ab6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7036f73a00a5222e5d9d889fe5b47ef4d77478b9"
|
|
}
|
|
,{
|
|
"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": "7036f73a00a5222e5d9d889fe5b47ef4d77478b9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "20984d5e617ddcbc04c1e539365976b48ba4c5e2"
|
|
}
|
|
,{
|
|
"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": "20984d5e617ddcbc04c1e539365976b48ba4c5e2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a2dd3c4c8887c73ef3ade2a1e819266cf421eca5"
|
|
}
|
|
,{
|
|
"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": "a2dd3c4c8887c73ef3ade2a1e819266cf421eca5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "743cb64f1ee8a3d9f0b4ea142f1a7e8447757885"
|
|
}]
|