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-assignment-operator.json
2016-11-03 16:02:56 -07:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-math-assignment-operator-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index e69de29..7150d6e 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -0,0 +1 @@",
"+x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5da04c6d20aa6fdedbc205bf855829ccd10687f3..5ec631f6610cf3cc1f773396df8e13b4b814129c"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 7150d6e..0bf97e7 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1 +1,3 @@",
"+x += 2;",
"+x += 1;",
" x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5ec631f6610cf3cc1f773396df8e13b4b814129c..b0a185f38a22e6745bb368f017c102214337c4cb"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced '2' with '1' in the x math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 0bf97e7..ad04937 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,3 +1,3 @@",
"-x += 2;",
"+x += 1;",
" x += 1;",
" x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b0a185f38a22e6745bb368f017c102214337c4cb..38cc878f5583067ae28923541b036488434aff2b"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-replacement-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced '1' with '2' in the x math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index ad04937..0bf97e7 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,3 +1,3 @@",
"-x += 1;",
"+x += 2;",
" x += 1;",
" x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "38cc878f5583067ae28923541b036488434aff2b..156edc8d14ab30f0157138c24b7694cec8a4bb67"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 0bf97e7..7127545 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,3 +1,2 @@",
"-x += 2;",
"-x += 1;",
" x += 1;",
"+x += 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "156edc8d14ab30f0157138c24b7694cec8a4bb67..185343b45e80feb8176e8a5a0ee4ec9bbe0fb637"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 7127545..94d1472 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,2 +1 @@",
"-x += 1;",
" x += 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "185343b45e80feb8176e8a5a0ee4ec9bbe0fb637..8ff3bab42e216d76eeba9d8c9c04f66c9c99eb7d"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 94d1472..e69de29 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1 +0,0 @@",
"-x += 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8ff3bab42e216d76eeba9d8c9c04f66c9c99eb7d..1c2dbb18fb6fc930b3d0e6bb31a559a853be5c63"
}]