1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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-10-11 23:17:34 +03:00
"sha1": "f5a546c68e4e82d0b350e3e9674659e65c938c55",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "47960ec40f3ccbcb1153c70f228c9938575ab8ad"
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-10-11 23:17:34 +03:00
"sha1": "47960ec40f3ccbcb1153c70f228c9938575ab8ad",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "06220f52068d26a6bcf0d23f6be481825f7923a4"
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-10-11 23:17:34 +03:00
"sha1": "06220f52068d26a6bcf0d23f6be481825f7923a4",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "404abb4553e8356df1399600d506705c6c9b3ab6"
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-10-11 23:17:34 +03:00
"sha1": "404abb4553e8356df1399600d506705c6c9b3ab6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "7036f73a00a5222e5d9d889fe5b47ef4d77478b9"
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-10-11 23:17:34 +03:00
"sha1": "7036f73a00a5222e5d9d889fe5b47ef4d77478b9",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "20984d5e617ddcbc04c1e539365976b48ba4c5e2"
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-10-11 23:17:34 +03:00
"sha1": "20984d5e617ddcbc04c1e539365976b48ba4c5e2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "a2dd3c4c8887c73ef3ade2a1e819266cf421eca5"
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-10-11 23:17:34 +03:00
"sha1": "a2dd3c4c8887c73ef3ade2a1e819266cf421eca5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "743cb64f1ee8a3d9f0b4ea142f1a7e8447757885"
2016-10-11 18:12:20 +03:00
}]