1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/relational-operator.json

258 lines
7.7 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-relational-operator-insert-test",
"expectedResult": {
"changes": {
"relational-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,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x < y' relational operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "4e47562dd59646a6c6c55ab138660495394bc5c9..58bdba5f1c185ad7ae6f4275533f799aa25e9020"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-relational-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"relational-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,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x <= y' relational 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,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x < y' relational operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "58bdba5f1c185ad7ae6f4275533f799aa25e9020..440204afe68655c97580bc91b578d9f4a0475c6c"
2016-10-11 18:12:20 +03:00
}
,{
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "440204afe68655c97580bc91b578d9f4a0475c6c..903fdf57bcf14cae9e043c4fbafb911715076dda"
2016-10-11 18:12:20 +03:00
}
,{
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "903fdf57bcf14cae9e043c4fbafb911715076dda..f6f1aab236022d2804b6bff6a9d5980814a5bdf1"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-relational-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"relational-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,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x <= y' relational operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "f6f1aab236022d2804b6bff6a9d5980814a5bdf1..55e87f9b00be4efdd35b68a61ac0c00bd6adc835"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-relational-operator-delete-test",
"expectedResult": {
"changes": {
"relational-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,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x < y' relational operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "55e87f9b00be4efdd35b68a61ac0c00bd6adc835..436b0dd39bce7222b6173e02af06a76e64862bd3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-relational-operator-delete-rest-test",
"expectedResult": {
"changes": {
"relational-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,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x <= y' relational operator"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "436b0dd39bce7222b6173e02af06a76e64862bd3..eaeb10729b105d290f4091fea5f04c34030bb5a5"
2016-10-11 18:12:20 +03:00
}]