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

402 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index e69de29..0344667 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -0,0 +1 @@",
"+i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "41ab7cb7dc378bf229f7a08f1a03c0676483f435..1571de07c19283348c86a4d81f61c63270a37d3f"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 0344667..79f5f20 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1 +1,3 @@",
"+i + j * 2 - j % 4;",
"+i + j * 3 - j % 5;",
" i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1571de07c19283348c86a4d81f61c63270a37d3f..97979c27333f35afb7288063c45a2f25cf5e1808"
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '3'"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced '4' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 79f5f20..284561c 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,3 +1,3 @@",
"-i + j * 2 - j % 4;",
"+i + j * 3 - j % 5;",
" i + j * 3 - j % 5;",
" i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "97979c27333f35afb7288063c45a2f25cf5e1808..d8320eb8219fb470d6ac17996f9d74b61fe7e6ee"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '3' with '2'"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced '5' with '4'"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 284561c..79f5f20 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,3 +1,3 @@",
"-i + j * 3 - j % 5;",
"+i + j * 2 - j % 4;",
" i + j * 3 - j % 5;",
" i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d8320eb8219fb470d6ac17996f9d74b61fe7e6ee..ca05a18c434755562d8787734dd2aa347af4ffca"
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 79f5f20..d1055f7 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,3 +1,2 @@",
"-i + j * 2 - j % 4;",
"-i + j * 3 - j % 5;",
" i + j * 3 - j % 5;",
"+i + j * 2 - j % 4;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ca05a18c434755562d8787734dd2aa347af4ffca..4f0d2886b18d7b66ad3b3d0222b5c4040ebfbf05"
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index d1055f7..79ba2b3 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,2 +1 @@",
"-i + j * 3 - j % 5;",
" i + j * 2 - j % 4;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4f0d2886b18d7b66ad3b3d0222b5c4040ebfbf05..c7c1c352742d04515a004d1c08642b78cf1e83cf"
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 79ba2b3..e69de29 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1 +0,0 @@",
"-i + j * 2 - j % 4;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c7c1c352742d04515a004d1c08642b78cf1e83cf..69248e3fdb3e6ab7da864ef7bd3a915aeefd3cc4"
}]