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

402 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": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 3 - j % 5' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "41ab7cb7dc378bf229f7a08f1a03c0676483f435..1571de07c19283348c86a4d81f61c63270a37d3f"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 2 - j % 4' math operator"
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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 3 - j % 5' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "1571de07c19283348c86a4d81f61c63270a37d3f..97979c27333f35afb7288063c45a2f25cf5e1808"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '2' with '3'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '4' with '5'"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "97979c27333f35afb7288063c45a2f25cf5e1808..d8320eb8219fb470d6ac17996f9d74b61fe7e6ee"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '3' with '2'"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '5' with '4'"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "d8320eb8219fb470d6ac17996f9d74b61fe7e6ee..ca05a18c434755562d8787734dd2aa347af4ffca"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i + j * 2 - j % 4' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "ca05a18c434755562d8787734dd2aa347af4ffca..4f0d2886b18d7b66ad3b3d0222b5c4040ebfbf05"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "4f0d2886b18d7b66ad3b3d0222b5c4040ebfbf05..c7c1c352742d04515a004d1c08642b78cf1e83cf"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-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,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "c7c1c352742d04515a004d1c08642b78cf1e83cf..69248e3fdb3e6ab7da864ef7bd3a915aeefd3cc4"
2016-10-11 18:12:20 +03:00
}]