mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
258 lines
7.5 KiB
JSON
258 lines
7.5 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-boolean-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a || b' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index e69de29..ba0778d 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -0,0 +1 @@",
|
|
"+a || b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "5b279526f66afb77b2588f5173ce44d7cc693f97..53ec9b4615b8872e47ba643814f579eb3d74ef32"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a && b' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a || b' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index ba0778d..2d34b94 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -1 +1,3 @@",
|
|
"+a && b",
|
|
"+a || b",
|
|
" a || b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "53ec9b4615b8872e47ba643814f579eb3d74ef32..02c804c5e37002a6843f3fc329c5db03ad4d51f6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index 2d34b94..2c61248 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-a && b",
|
|
"+a || b",
|
|
" a || b",
|
|
" a || b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "02c804c5e37002a6843f3fc329c5db03ad4d51f6..144d5b79b707781d8b5d1d56e281bcaa8598ae17"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index 2c61248..2d34b94 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-a || b",
|
|
"+a && b",
|
|
" a || b",
|
|
" a || b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "144d5b79b707781d8b5d1d56e281bcaa8598ae17..000c0198a566086df4d95a1ffd575748b7721552"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a && b' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index 2d34b94..32a41c9 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-a && b",
|
|
"-a || b",
|
|
" a || b",
|
|
"+a && b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "000c0198a566086df4d95a1ffd575748b7721552..f363216d5459fb0eafeb0168cc3f4af6d11f8cd5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a || b' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index 32a41c9..b0af58d 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -1,2 +1 @@",
|
|
"-a || b",
|
|
" a && b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "f363216d5459fb0eafeb0168cc3f4af6d11f8cd5..57a8c0847390f2f78910231321007d7b2c86cc7a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a && b' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
"index b0af58d..e69de29 100644",
|
|
"--- a/boolean-operator.rb",
|
|
"+++ b/boolean-operator.rb",
|
|
"@@ -1 +0,0 @@",
|
|
"-a && b"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "57a8c0847390f2f78910231321007d7b2c86cc7a..0c8195a0d30149b84b53bc2c98687d24a787f4dd"
|
|
}]
|