2016-10-06 02:17:46 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-math-operator-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "math-operator.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'i + j * 3 - j % 5' math operator",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "a871e92442fa237af75a13a311d49a15bcea9444",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "6e6e7267c1e6bc551379dbdf39e3d4ca59d4a60c"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "6e6e7267c1e6bc551379dbdf39e3d4ca59d4a60c",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "bf33c9910dcfad10ffafd330c0adff6b7a7f262a"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-math-operator-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "bf33c9910dcfad10ffafd330c0adff6b7a7f262a",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "bd78c2dd93219f462c6a6823267bd327c14094db"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-math-operator-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "bd78c2dd93219f462c6a6823267bd327c14094db",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "413c0d316184bb443b4facd4aec46b4b04f0df71"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "413c0d316184bb443b4facd4aec46b4b04f0df71",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "fb9ae3c73391e3158c898052fa343bb7bf98394b"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-math-operator-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "math-operator.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "fb9ae3c73391e3158c898052fa343bb7bf98394b",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "9d2684586034ffe1cd50891ac950f9bc2bf40d2e"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-math-operator-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"math-operator.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "math-operator.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"math-operator.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "9d2684586034ffe1cd50891ac950f9bc2bf40d2e",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "d7edfafd0028d88e036ad5af083bd4c0eaf821d5"
|
2016-10-06 02:17:46 +03:00
|
|
|
}]
|