mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
258 lines
7.7 KiB
JSON
258 lines
7.7 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-relational-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x < y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index e69de29..4021910 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+x < y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "4e47562dd59646a6c6c55ab138660495394bc5c9..58bdba5f1c185ad7ae6f4275533f799aa25e9020"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-relational-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x <= y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x < y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index 4021910..dbef050 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+x <= y;",
|
|
"+x < y;",
|
|
" x < y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "58bdba5f1c185ad7ae6f4275533f799aa25e9020..440204afe68655c97580bc91b578d9f4a0475c6c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-relational-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index dbef050..a9ff7f6 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-x <= y;",
|
|
"+x < y;",
|
|
" x < y;",
|
|
" x < y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "440204afe68655c97580bc91b578d9f4a0475c6c..903fdf57bcf14cae9e043c4fbafb911715076dda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-relational-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index a9ff7f6..dbef050 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-x < y;",
|
|
"+x <= y;",
|
|
" x < y;",
|
|
" x < y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "903fdf57bcf14cae9e043c4fbafb911715076dda..f6f1aab236022d2804b6bff6a9d5980814a5bdf1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-relational-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x <= y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index dbef050..1ee42eb 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-x <= y;",
|
|
"-x < y;",
|
|
" x < y;",
|
|
"+x <= y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "f6f1aab236022d2804b6bff6a9d5980814a5bdf1..55e87f9b00be4efdd35b68a61ac0c00bd6adc835"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-relational-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x < y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index 1ee42eb..3be8450 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-x < y;",
|
|
" x <= y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "55e87f9b00be4efdd35b68a61ac0c00bd6adc835..436b0dd39bce7222b6173e02af06a76e64862bd3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-relational-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x <= y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.js b/relational-operator.js",
|
|
"index 3be8450..e69de29 100644",
|
|
"--- a/relational-operator.js",
|
|
"+++ b/relational-operator.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-x <= y;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "436b0dd39bce7222b6173e02af06a76e64862bd3..eaeb10729b105d290f4091fea5f04c34030bb5a5"
|
|
}]
|