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

369 lines
12 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": {
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "29d3dd029a42aa320f2d154af468cc33e9fc7be2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "3bcee56c9f08e47e37624d7961b7459e341435f7"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "3bcee56c9f08e47e37624d7961b7459e341435f7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "d5ac4c9c8fa386bf983b962f242ff6eec966310b"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "d5ac4c9c8fa386bf983b962f242ff6eec966310b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "1ac0e212164f2068e691c5a1ee4d84af9b6a7b5a"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "1ac0e212164f2068e691c5a1ee4d84af9b6a7b5a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "be4676f35933afc323b26da0d809b21731d14733"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "be4676f35933afc323b26da0d809b21731d14733",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "5d632a1a0a0356c0301d21065697fc877a75b60c"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "5d632a1a0a0356c0301d21065697fc877a75b60c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "bbbfb139a7357fa00181518d13609396add9d3f7"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "bbbfb139a7357fa00181518d13609396add9d3f7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "d8ca022a316c97349395e113ee5563dbfc64a120"
2016-10-11 18:12:20 +03:00
}]