1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/math-assignment-operator.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-math-assignment-operator-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "5da04c6d20aa6fdedbc205bf855829ccd10687f3..5ec631f6610cf3cc1f773396df8e13b4b814129c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-assignment-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' math assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "5ec631f6610cf3cc1f773396df8e13b4b814129c..b0a185f38a22e6745bb368f017c102214337c4cb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '2' with '1' in the x math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "b0a185f38a22e6745bb368f017c102214337c4cb..38cc878f5583067ae28923541b036488434aff2b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-assignment-operator-replacement-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '1' with '2' in the x math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "38cc878f5583067ae28923541b036488434aff2b..156edc8d14ab30f0157138c24b7694cec8a4bb67"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' math assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' math assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "156edc8d14ab30f0157138c24b7694cec8a4bb67..185343b45e80feb8176e8a5a0ee4ec9bbe0fb637"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "185343b45e80feb8176e8a5a0ee4ec9bbe0fb637..8ff3bab42e216d76eeba9d8c9c04f66c9c99eb7d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' math assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "8ff3bab42e216d76eeba9d8c9c04f66c9c99eb7d..1c2dbb18fb6fc930b3d0e6bb31a559a853be5c63"
2016-10-11 18:12:20 +03:00
}]