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/bitwise-operator.json
2016-10-27 08:30:34 -07:00

383 lines
12 KiB
JSON

[{
"testCaseDescription": "ruby-bitwise-operator-insert-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'a | b' bitwise operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'a >> b' bitwise operator"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Added the 'a ^ b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "7946efe0d8ed9bdc2bc357f2b0bd9ffe2b082759",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3bcad0e51ce7706becbb91a5b47d3260369c83ff"
}
,{
"testCaseDescription": "ruby-bitwise-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'a & b' bitwise operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'a << b' bitwise operator"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Added the 'a | b' bitwise operator"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Added the 'a >> b' bitwise operator"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
6
]
}
},
"summary": "Added the 'a ^ b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "3bcad0e51ce7706becbb91a5b47d3260369c83ff",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1d286e8d2171e63009e8e6a047de513c878d4471"
}
,{
"testCaseDescription": "ruby-bitwise-operator-delete-insert-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'a | b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "1d286e8d2171e63009e8e6a047de513c878d4471",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9b63dd9659f29965aebcebcb2239210e9e631be3"
}
,{
"testCaseDescription": "ruby-bitwise-operator-replacement-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'a | b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "9b63dd9659f29965aebcebcb2239210e9e631be3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "38c3c454b9660defb61b59e7f2e1b0a29a4c475c"
}
,{
"testCaseDescription": "ruby-bitwise-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'a & b' bitwise operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'a << b' bitwise operator"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Deleted the 'a | b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "38c3c454b9660defb61b59e7f2e1b0a29a4c475c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2101b956620ebfb42e5d51e7ccecc89b9af06073"
}
,{
"testCaseDescription": "ruby-bitwise-operator-delete-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'a | b' bitwise operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'a >> b' bitwise operator"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Deleted the 'a ^ b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "2101b956620ebfb42e5d51e7ccecc89b9af06073",
"gitDir": "test/corpus/repos/ruby",
"sha2": "87ba84a14b0b79d58189f23d5ad807130fbae333"
}
,{
"testCaseDescription": "ruby-bitwise-operator-delete-rest-test",
"expectedResult": {
"changes": {
"bitwise-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'a & b' bitwise operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'a << b' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.rb"
],
"sha1": "87ba84a14b0b79d58189f23d5ad807130fbae333",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8d3d3136ccca2117277d2f571ad0e23b84296b82"
}]