mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
474 lines
14 KiB
JSON
474 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-array-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ 1, 2, 3]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index e69de29..a900520 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -0,0 +1 @@",
|
|
"+[ 1, 2, 3]"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "9d36a842bf6b31593c5613aeabed269c0c637a26..1b099f13818692625e279bfc2c6076f898632c35"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '['a', 'b', 'c']' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ 1, 2, 3]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index a900520..c3ae0a1 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -1 +1,3 @@",
|
|
"+['a', 'b', 'c']",
|
|
"+[ 1, 2, 3]",
|
|
" [ 1, 2, 3]"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "1b099f13818692625e279bfc2c6076f898632c35..631c3b89bc641a3c70efe97d2beca1c9acf0a888"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index c3ae0a1..9d0ec26 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-['a', 'b', 'c']",
|
|
"+[ 1, 2, 3]",
|
|
" [ 1, 2, 3]",
|
|
" [ 1, 2, 3]"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "631c3b89bc641a3c70efe97d2beca1c9acf0a888..6a0051dc4e539e873189d80e3d4fbdb5fff0d7bb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index 9d0ec26..c3ae0a1 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-[ 1, 2, 3]",
|
|
"+['a', 'b', 'c']",
|
|
" [ 1, 2, 3]",
|
|
" [ 1, 2, 3]"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "6a0051dc4e539e873189d80e3d4fbdb5fff0d7bb..6fb04049f49cb25610642060c4949e6d7ee7dadc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '['a', 'b', 'c']' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ 1, 2, 3]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '['a', 'b', 'c']' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index c3ae0a1..102a972 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-['a', 'b', 'c']",
|
|
"-[ 1, 2, 3]",
|
|
" [ 1, 2, 3]",
|
|
"+['a', 'b', 'c']"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "6fb04049f49cb25610642060c4949e6d7ee7dadc..c02c927176ae89514609fa0d109a850b5a2e5d22"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ 1, 2, 3]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index 102a972..939152e 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -1,2 +1 @@",
|
|
"-[ 1, 2, 3]",
|
|
" ['a', 'b', 'c']"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "c02c927176ae89514609fa0d109a850b5a2e5d22..e6b7bd5c4e12c6b61e492d526b1f6828288dd5c4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '['a', 'b', 'c']' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.rb b/array.rb",
|
|
"index 939152e..e69de29 100644",
|
|
"--- a/array.rb",
|
|
"+++ b/array.rb",
|
|
"@@ -1 +0,0 @@",
|
|
"-['a', 'b', 'c']"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "e6b7bd5c4e12c6b61e492d526b1f6828288dd5c4..72c289d2393a3dd6ecfba0fe720e099f8fc60c60"
|
|
}]
|