1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00
semantic/test/corpus/diff-summaries/javascript/math-operator.json
2016-10-11 11:26:57 -04:00

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "math-operator.js",
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "29d3dd029a42aa320f2d154af468cc33e9fc7be2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3bcee56c9f08e47e37624d7961b7459e341435f7"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "math-operator.js",
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "math-operator.js",
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "3bcee56c9f08e47e37624d7961b7459e341435f7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d5ac4c9c8fa386bf983b962f242ff6eec966310b"
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"these": [
{
"start": [
1,
9
],
"name": "math-operator.js",
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"name": "math-operator.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '3'",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
17
],
"name": "math-operator.js",
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"name": "math-operator.js",
"end": [
1,
18
]
}
]
},
"summary": "Replaced '4' with '5'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "d5ac4c9c8fa386bf983b962f242ff6eec966310b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1ac0e212164f2068e691c5a1ee4d84af9b6a7b5a"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"these": [
{
"start": [
1,
9
],
"name": "math-operator.js",
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"name": "math-operator.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced '3' with '2'",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
17
],
"name": "math-operator.js",
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"name": "math-operator.js",
"end": [
1,
18
]
}
]
},
"summary": "Replaced '5' with '4'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "1ac0e212164f2068e691c5a1ee4d84af9b6a7b5a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "be4676f35933afc323b26da0d809b21731d14733"
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "math-operator.js",
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "math-operator.js",
"end": [
2,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "math-operator.js",
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "be4676f35933afc323b26da0d809b21731d14733",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5d632a1a0a0356c0301d21065697fc877a75b60c"
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "math-operator.js",
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "5d632a1a0a0356c0301d21065697fc877a75b60c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bbbfb139a7357fa00181518d13609396add9d3f7"
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "math-operator.js",
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "bbbfb139a7357fa00181518d13609396add9d3f7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d8ca022a316c97349395e113ee5563dbfc64a120"
}]