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/math-operator.json

341 lines
10 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 3 - j % 5' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "977edd8e1b976d612c9c6f284738a4f22cc697b8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "bd05dffb8711ecccbf470a2bb88d7a9b0dd3ee6d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 2 - j % 4' math operator"
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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 3 - j % 5' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "bd05dffb8711ecccbf470a2bb88d7a9b0dd3ee6d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "141c1166e0bb77f01b939087c90496c7e65b9302"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '2' with '3'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '4' with '5'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "141c1166e0bb77f01b939087c90496c7e65b9302",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "ff1f9d941de0f2a5852207483c88031b1f6cc308"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '3' with '2'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '5' with '4'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "ff1f9d941de0f2a5852207483c88031b1f6cc308",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "0c6e4341cc1c8400fcdc24125da09bf3132f995c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 2 - j % 4' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "0c6e4341cc1c8400fcdc24125da09bf3132f995c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "0cb0a2b439c6d673b53953706aeb4a429318d70c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "0cb0a2b439c6d673b53953706aeb4a429318d70c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "10b67d732632b9187a30e97e8d663dc906f67dc1"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "10b67d732632b9187a30e97e8d663dc906f67dc1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "f18430c0e1b243d84f9119ec7d6109a0dadcb359"
2016-10-11 18:12:20 +03:00
}]