mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
566 lines
17 KiB
JSON
566 lines
17 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-relational-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-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 'x != y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x === y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index e69de29..e2290b2 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -0,0 +1,3 @@",
|
|
"+x == y",
|
|
"+x != y",
|
|
"+x === y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "0c8195a0d30149b84b53bc2c98687d24a787f4dd..a1f4def52826a2f5f35936ea4974cec5ea85e091"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-relational-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x <=> y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x =~ y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x == y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x != y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x === y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index e2290b2..d547ce5 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -1,3 +1,9 @@",
|
|
"+x <=> y",
|
|
"+x =~ y",
|
|
"+x =! y",
|
|
"+x == y",
|
|
"+x != y",
|
|
"+x === y",
|
|
" x == y",
|
|
" x != y",
|
|
" x === y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a1f4def52826a2f5f35936ea4974cec5ea85e091..a410e8475bcc3f55ccadce1c1de878e0f23137c8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-relational-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x == y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index d547ce5..5849f29 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -1,6 +1,6 @@",
|
|
"-x <=> y",
|
|
"-x =~ y",
|
|
"-x =! y",
|
|
"+x == y",
|
|
"+x != y",
|
|
"+x === y",
|
|
" x == y",
|
|
" x != y",
|
|
" x === y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a410e8475bcc3f55ccadce1c1de878e0f23137c8..863fa3c522169326664ae03b9d6fec02d4dd9eba"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-relational-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x == y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index 5849f29..d547ce5 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -1,6 +1,6 @@",
|
|
"-x == y",
|
|
"-x != y",
|
|
"-x === y",
|
|
"+x <=> y",
|
|
"+x =~ y",
|
|
"+x =! y",
|
|
" x == y",
|
|
" x != y",
|
|
" x === y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "863fa3c522169326664ae03b9d6fec02d4dd9eba..d8b19e6874eeee4b5190a4ec83a8f106c9374626"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-relational-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x <=> y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x =~ y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x == y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index d547ce5..ac1eb5d 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -1,9 +1,6 @@",
|
|
"-x <=> y",
|
|
"-x =~ y",
|
|
"-x =! y",
|
|
"-x == y",
|
|
"-x != y",
|
|
"-x === y",
|
|
" x == y",
|
|
" x != y",
|
|
" x === y",
|
|
"+x <=> y",
|
|
"+x =~ y",
|
|
"+x =! y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "d8b19e6874eeee4b5190a4ec83a8f106c9374626..26c6f1f20d765f5c209e74a29bb714b6b7aae5b7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-relational-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-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 'x != y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x === y' relational operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index ac1eb5d..8180103 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -1,6 +1,3 @@",
|
|
"-x == y",
|
|
"-x != y",
|
|
"-x === y",
|
|
" x <=> y",
|
|
" x =~ y",
|
|
" x =! y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "26c6f1f20d765f5c209e74a29bb714b6b7aae5b7..17932b7d6a37caa52201ba5309a86f228fb81493"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-relational-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"relational-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x <=> y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x =~ y' relational operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"relational-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/relational-operator.rb b/relational-operator.rb",
|
|
"index 8180103..e69de29 100644",
|
|
"--- a/relational-operator.rb",
|
|
"+++ b/relational-operator.rb",
|
|
"@@ -1,3 +0,0 @@",
|
|
"-x <=> y",
|
|
"-x =~ y",
|
|
"-x =! y"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "17932b7d6a37caa52201ba5309a86f228fb81493..cc9a4a6fa2a1c65983250a900daf6501538b4cd8"
|
|
}]
|