mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
365 lines
11 KiB
JSON
365 lines
11 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' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a > b' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"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": "cc9a4a6fa2a1c65983250a900daf6501538b4cd8..d0eb4857f83d5eef8c789d9b1800947161d8876d"
|
|
}
|
|
,{
|
|
"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' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a >= b' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x < y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a > b' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"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": "d0eb4857f83d5eef8c789d9b1800947161d8876d..186f6c1cb9c2260246f3126b1203b54b9670ea09"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"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": "186f6c1cb9c2260246f3126b1203b54b9670ea09..4e7370cd85c7f324871137855a459a1c583bce75"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"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": "4e7370cd85c7f324871137855a459a1c583bce75..a26bfabeda46c054da38b6aaf5564c5b9e575294"
|
|
}
|
|
,{
|
|
"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' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a >= b' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"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": "a26bfabeda46c054da38b6aaf5564c5b9e575294..0e4db6b78d0c970ab1b1c30a357997ccd2dd80fa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comparision-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comparision-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x < y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a > b' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"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": "0e4db6b78d0c970ab1b1c30a357997ccd2dd80fa..84a86501aebef11b8627b8524fc8d324665ffc44"
|
|
}
|
|
,{
|
|
"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' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a >= b' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"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": "84a86501aebef11b8627b8524fc8d324665ffc44..70d36a6a9817b1e91707c1f7f830a0568b959efa"
|
|
}]
|