1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/ruby/bitwise-operator.json
2016-10-25 11:36:30 -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": "788aed5bd2227af40490fc7f73d7ac0f3b5b818f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fac62a80eabcb76a805752c737ddca12ac97b0b7"
}
,{
"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": "fac62a80eabcb76a805752c737ddca12ac97b0b7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "96269e3ab8a3026602285e8d04de1542727f13be"
}
,{
"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": "96269e3ab8a3026602285e8d04de1542727f13be",
"gitDir": "test/corpus/repos/ruby",
"sha2": "43bde92ee56468d1987cacb1d1aa46b12e8c8323"
}
,{
"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": "43bde92ee56468d1987cacb1d1aa46b12e8c8323",
"gitDir": "test/corpus/repos/ruby",
"sha2": "752dcbc541d3e65bc2ad55f0cf938fc3fd208ff8"
}
,{
"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": "752dcbc541d3e65bc2ad55f0cf938fc3fd208ff8",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3acb6d6329a81f287315cbc8452c8e85fb561490"
}
,{
"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": "3acb6d6329a81f287315cbc8452c8e85fb561490",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0834cdba71d68ae9d30204ed41a32a2a7b2c1206"
}
,{
"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": "0834cdba71d68ae9d30204ed41a32a2a7b2c1206",
"gitDir": "test/corpus/repos/ruby",
"sha2": "47a6d62d4cd51087e85e92ca0569ac52b2c8541d"
}]