mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
539 lines
17 KiB
JSON
539 lines
17 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-comparision-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x < y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a > b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index e69de29..582cb83 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -0,0 +1,2 @@",
|
|
"+x < y",
|
|
"+a > b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "cef9371cb4d1a05f91067637d7e9256fdc8b846c..f16e266ee0009f7a4c65641bea11cc026780fe0c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x <= y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a >= b' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x < y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a > b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index 582cb83..b96996d 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -1,2 +1,6 @@",
|
|
"+x <= y",
|
|
"+a >= b",
|
|
"+x < y",
|
|
"+a > b",
|
|
" x < y",
|
|
" a > b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "f16e266ee0009f7a4c65641bea11cc026780fe0c..0bd2b5d4f8f5ccdc89cc8a66f48fd5ac2f58d558"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x <= y' binary statement with the 'x < y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a >= b' binary statement with the 'a > b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index b96996d..3b7fde7 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -1,5 +1,5 @@",
|
|
"-x <= y",
|
|
"-a >= b",
|
|
"+x < y",
|
|
"+a > b",
|
|
" x < y",
|
|
" a > b",
|
|
" x < y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "0bd2b5d4f8f5ccdc89cc8a66f48fd5ac2f58d558..6fb2119dabcb8f81561d66436b4efa1acb9171f7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x < y' binary statement with the 'x <= y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a > b' binary statement with the 'a >= b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index 3b7fde7..b96996d 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -1,5 +1,5 @@",
|
|
"-x < y",
|
|
"-a > b",
|
|
"+x <= y",
|
|
"+a >= b",
|
|
" x < y",
|
|
" a > b",
|
|
" x < y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "6fb2119dabcb8f81561d66436b4efa1acb9171f7..26c601907f4dbfde2a4638e513ec156a847fc80f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x <= y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a >= b' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x < y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a > b' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x <= y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a >= b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index b96996d..1cfa010 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -1,6 +1,4 @@",
|
|
"-x <= y",
|
|
"-a >= b",
|
|
"-x < y",
|
|
"-a > b",
|
|
" x < y",
|
|
" a > b",
|
|
"+x <= y",
|
|
"+a >= b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "26c601907f4dbfde2a4638e513ec156a847fc80f..6153b556fdc873f0d439c52a385b5330625e6fa8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x < y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a > b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index 1cfa010..71b2892 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -1,4 +1,2 @@",
|
|
"-x < y",
|
|
"-a > b",
|
|
" x <= y",
|
|
" a >= b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "6153b556fdc873f0d439c52a385b5330625e6fa8..f0e3e2476ab21d12a757629d0d8937d5de2ede9c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x <= y' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a >= b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comparision-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
|
|
"index 71b2892..e69de29 100644",
|
|
"--- a/comparision-operator.rb",
|
|
"+++ b/comparision-operator.rb",
|
|
"@@ -1,2 +0,0 @@",
|
|
"-x <= y",
|
|
"-a >= b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "f0e3e2476ab21d12a757629d0d8937d5de2ede9c..43e5b394550f6e013c1d5023b8946dfdf52e25f0"
|
|
}]
|