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
2016-10-11 16:18:26 -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": "94851cf65efff14a5d6caad6c5ec3055d75f6891",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5154551d7bb3028e34b78c57ef6e8251941c5e24"
}
,{
"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": "5154551d7bb3028e34b78c57ef6e8251941c5e24",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fc5286a2ab8fbc26558fc824e1673af4c9444af0"
}
,{
"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": "fc5286a2ab8fbc26558fc824e1673af4c9444af0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "20ff08f05738054ae97a55afe187f062018e7b4a"
}
,{
"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": "20ff08f05738054ae97a55afe187f062018e7b4a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b633411825d8d0d6e48285da3ac8a127bb5b833f"
}
,{
"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": "b633411825d8d0d6e48285da3ac8a127bb5b833f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5fba7f8da7725787273fb9fdff3650ee0572bfcd"
}
,{
"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": "5fba7f8da7725787273fb9fdff3650ee0572bfcd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "971b37d42e25cdfa61a5023a7fbbef5321f2848a"
}
,{
"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": "971b37d42e25cdfa61a5023a7fbbef5321f2848a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "86115e374d32bc9d7b6c8dd347d7ec900b501880"
}]