mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
348 lines
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-delete-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'delete thing['prop']' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index e69de29..c83346d 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+delete thing['prop'];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b5645de0a9c0002d8f44d302c200dd88ff113f52..d1aaae4cff971b6bd6647c77427eab5789728dea"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-delete-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'delete thing.prop' operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'delete thing['prop']' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index c83346d..7c8b990 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+delete thing.prop",
|
|
"+delete thing['prop'];",
|
|
" delete thing['prop'];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d1aaae4cff971b6bd6647c77427eab5789728dea..6444b777c04540c4e0229617aaadcf274dbe092f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-delete-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'delete thing.prop' operator with the 'delete thing['prop']' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index 7c8b990..f506e36 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-delete thing.prop",
|
|
"+delete thing['prop'];",
|
|
" delete thing['prop'];",
|
|
" delete thing['prop'];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6444b777c04540c4e0229617aaadcf274dbe092f..ce69f237ff3cf767d8814435ffa957dadfeafa37"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-delete-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'delete thing['prop']' operator with the 'delete thing.prop' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index f506e36..7c8b990 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-delete thing['prop'];",
|
|
"+delete thing.prop",
|
|
" delete thing['prop'];",
|
|
" delete thing['prop'];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ce69f237ff3cf767d8814435ffa957dadfeafa37..71f7d6db03225cbfcc31f2bbd6ab589e9183c55c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-delete-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'delete thing.prop' operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'delete thing['prop']' operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'delete thing.prop' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index 7c8b990..2dfe079 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-delete thing.prop",
|
|
"-delete thing['prop'];",
|
|
" delete thing['prop'];",
|
|
"+delete thing.prop"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "71f7d6db03225cbfcc31f2bbd6ab589e9183c55c..629c83e185f6ed3c97976cc604dfb3c5f455c11b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-delete-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'delete thing['prop']' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index 2dfe079..9d68dfb 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-delete thing['prop'];",
|
|
" delete thing.prop"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "629c83e185f6ed3c97976cc604dfb3c5f455c11b..cf1e4c5bef7af55d4866d7be93a24a523edbbf4f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-delete-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delete-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'delete thing.prop' operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delete-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delete-operator.js b/delete-operator.js",
|
|
"index 9d68dfb..e69de29 100644",
|
|
"--- a/delete-operator.js",
|
|
"+++ b/delete-operator.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-delete thing.prop"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "cf1e4c5bef7af55d4866d7be93a24a523edbbf4f..56f88d5286e94da2b11b7f6d0a35aa836d4f5921"
|
|
}]
|