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
2016-10-14 12:19:31 -04: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": "a0175e65e90799bed222a0cca0576cd48cd7b133",
"gitDir": "test/corpus/repos/javascript",
"sha2": "12f36d52f2c83a36587956650d27651a6f692952"
}
,{
"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": "12f36d52f2c83a36587956650d27651a6f692952",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a436f5b13c4d438d2b389b72c6d9ed7e70224dda"
}
,{
"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": "a436f5b13c4d438d2b389b72c6d9ed7e70224dda",
"gitDir": "test/corpus/repos/javascript",
"sha2": "32102f31cc5b8b5b74713e26a662e5f9da5690f2"
}
,{
"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": "32102f31cc5b8b5b74713e26a662e5f9da5690f2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f69be3858e959b1bf8db98a254c0f6d88bcd4cef"
}
,{
"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": "f69be3858e959b1bf8db98a254c0f6d88bcd4cef",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bb28b7f574961d6f4e2f08b1e1b8eefeeab27ef9"
}
,{
"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": "bb28b7f574961d6f4e2f08b1e1b8eefeeab27ef9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3c8d00ca3352e0d884fedf07a0d509317f048a45"
}
,{
"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": "3c8d00ca3352e0d884fedf07a0d509317f048a45",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2e01e44b83e82ce6f4210318eed9b60890b681f2"
}]