1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/array.json
2016-10-27 08:30:34 -07:00

413 lines
12 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"
],
"sha1": "f87f3eb05b333eef2a3237d0c2dcacd396272ca3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5fb9b3f96cc17eea28d9caf2ed099b8703247748"
}
,{
"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"
],
"sha1": "5fb9b3f96cc17eea28d9caf2ed099b8703247748",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f6ca0f12e815c207024e831388e1930ca72fc56f"
}
,{
"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"
],
"sha1": "f6ca0f12e815c207024e831388e1930ca72fc56f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0afd2c3d4f6045080be33c216d9c79735880d2cb"
}
,{
"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"
],
"sha1": "0afd2c3d4f6045080be33c216d9c79735880d2cb",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6d35a4124b9ae97cc296dd3a0da2bf685fa7fe9b"
}
,{
"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"
],
"sha1": "6d35a4124b9ae97cc296dd3a0da2bf685fa7fe9b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "44fcb9b9046fbdb868724f8e44b78130bac0198a"
}
,{
"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"
],
"sha1": "44fcb9b9046fbdb868724f8e44b78130bac0198a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8164fe2f3e3b3daad087ff2e186e458c27abc409"
}
,{
"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"
],
"sha1": "8164fe2f3e3b3daad087ff2e186e458c27abc409",
"gitDir": "test/corpus/repos/ruby",
"sha2": "cb9b58c794e5724f7731e47719c9efa3457e976a"
}]