1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/math-operator.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

341 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "977edd8e1b976d612c9c6f284738a4f22cc697b8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bd05dffb8711ecccbf470a2bb88d7a9b0dd3ee6d"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "bd05dffb8711ecccbf470a2bb88d7a9b0dd3ee6d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "141c1166e0bb77f01b939087c90496c7e65b9302"
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '3'"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced '4' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "141c1166e0bb77f01b939087c90496c7e65b9302",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ff1f9d941de0f2a5852207483c88031b1f6cc308"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '3' with '2'"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced '5' with '4'"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "ff1f9d941de0f2a5852207483c88031b1f6cc308",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0c6e4341cc1c8400fcdc24125da09bf3132f995c"
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "0c6e4341cc1c8400fcdc24125da09bf3132f995c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0cb0a2b439c6d673b53953706aeb4a429318d70c"
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "0cb0a2b439c6d673b53953706aeb4a429318d70c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "10b67d732632b9187a30e97e8d663dc906f67dc1"
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "10b67d732632b9187a30e97e8d663dc906f67dc1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f18430c0e1b243d84f9119ec7d6109a0dadcb359"
}]