1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/ruby/bitwise-operator.json
2016-11-02 10:52:40 -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": "2fa42e599e69ccace9903152479a5ac1fb0609e3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "13f7408949443a2ecbcb8b21fc51a1651c248457"
}
,{
"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": "13f7408949443a2ecbcb8b21fc51a1651c248457",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a83a915e587981da6d1c8458dbe059ae646fb689"
}
,{
"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": "a83a915e587981da6d1c8458dbe059ae646fb689",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2b695328a61ff4071cecf94133facf8aa0e0d986"
}
,{
"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": "2b695328a61ff4071cecf94133facf8aa0e0d986",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d47fac21e62a846a146a3886376eaf3052357570"
}
,{
"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": "d47fac21e62a846a146a3886376eaf3052357570",
"gitDir": "test/corpus/repos/ruby",
"sha2": "81b765b6393fce9418e5b0eaf2e1fe28d839ef84"
}
,{
"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": "81b765b6393fce9418e5b0eaf2e1fe28d839ef84",
"gitDir": "test/corpus/repos/ruby",
"sha2": "98d47dcb64664ba3aef0942b4b2c94330eb56fad"
}
,{
"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": "98d47dcb64664ba3aef0942b4b2c94330eb56fad",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b0948d2f824b6254c6a4a016e6b10fd62e995282"
}]