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/subscript-access-assignment.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index e69de29b..6b6d48d2 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -0,0 +1 @@",
"+y[\"x\"] = 0;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "c19769fba6e7c7042d1ab1915c3f9bb20d569e22..0cc920fcb9a611b8c6e75c061f71bba36f375f9a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' 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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 6b6d48d2..17d3ff48 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1 +1,3 @@",
"+y[\"x\"] = 1;",
"+y[\"x\"] = 0;",
" y[\"x\"] = 0;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "0cc920fcb9a611b8c6e75c061f71bba36f375f9a..cb74cdb2c35a8d40907b018505d8f1769379b9ca"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '1' with '0' in an assignment to y[\"x\"]"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 17d3ff48..d856ac0d 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1,3 +1,3 @@",
"-y[\"x\"] = 1;",
"+y[\"x\"] = 0;",
" y[\"x\"] = 0;",
" y[\"x\"] = 0;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "cb74cdb2c35a8d40907b018505d8f1769379b9ca..ce47993610b84c23c5956f7a598d1cc3218bdcb3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '0' with '1' in an assignment to y[\"x\"]"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index d856ac0d..17d3ff48 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1,3 +1,3 @@",
"-y[\"x\"] = 0;",
"+y[\"x\"] = 1;",
" y[\"x\"] = 0;",
" y[\"x\"] = 0;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "ce47993610b84c23c5956f7a598d1cc3218bdcb3..7edc956052d054a4e5d4474baedbfdccc90ffa26"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y[\"x\"]' 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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y[\"x\"]' 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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 17d3ff48..cdcb426e 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1,3 +1,2 @@",
"-y[\"x\"] = 1;",
"-y[\"x\"] = 0;",
" y[\"x\"] = 0;",
"+y[\"x\"] = 1;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "7edc956052d054a4e5d4474baedbfdccc90ffa26..3447577471d7e4fa2ed142ecbdac76674cce1df3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index cdcb426e..0407c3a1 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1,2 +1 @@",
"-y[\"x\"] = 0;",
" y[\"x\"] = 1;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "3447577471d7e4fa2ed142ecbdac76674cce1df3..93d69fa6cf639f25112e6b738b5fa55f977c2232"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 0407c3a1..e69de29b 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1 +0,0 @@",
"-y[\"x\"] = 1;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2017-02-06 18:44:04 +03:00
"shas": "93d69fa6cf639f25112e6b738b5fa55f977c2232..e49b80d7752e9f991ddcb2ff2a8c5f714d9bafa3"
2016-10-11 18:12:20 +03:00
}]