mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
258 lines
7.6 KiB
JSON
258 lines
7.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-boolean-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index e69de29..7280a98 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "69248e3fdb3e6ab7da864ef7bd3a915aeefd3cc4..697a361cfb8bcfd14631209deb6159679d166115"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i && j' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index 7280a98..fe3f306 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+i && j;",
|
|
"+i || j;",
|
|
" i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "697a361cfb8bcfd14631209deb6159679d166115..2829490ad0cdc2f954145a2698444d5daf1da199"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index fe3f306..273c0ee 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-i && j;",
|
|
"+i || j;",
|
|
" i || j;",
|
|
" i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2829490ad0cdc2f954145a2698444d5daf1da199..8a66944201f7ad0fc2ee8fcdcaff607125c8cc0f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index 273c0ee..fe3f306 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-i || j;",
|
|
"+i && j;",
|
|
" i || j;",
|
|
" i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "8a66944201f7ad0fc2ee8fcdcaff607125c8cc0f..0658cb117a6a6719f8464948c86e3e278d8c2a95"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i && j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index fe3f306..7f4873c 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-i && j;",
|
|
"-i || j;",
|
|
" i || j;",
|
|
"+i && j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "0658cb117a6a6719f8464948c86e3e278d8c2a95..35f6d8f480c9f8645a3c0d8f9fa5339059a6380a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index 7f4873c..c6921d1 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-i || j;",
|
|
" i && j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "35f6d8f480c9f8645a3c0d8f9fa5339059a6380a..2b07585de8be3e4334361368f2dc465278842434"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i && j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index c6921d1..e69de29 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-i && j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2b07585de8be3e4334361368f2dc465278842434..5edf134e2ccb0fa1cd27b2e07b4279575f1a5f0d"
|
|
}]
|