1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/bitwise-operator.json
2016-11-03 16:02:56 -07:00

469 lines
14 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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index e69de29..a596f03 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -0,0 +1,3 @@",
"+a | b",
"+a >> b",
"+a ^ b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "70d36a6a9817b1e91707c1f7f830a0568b959efa..ce65ef18e5032a270bbfcef7d593c68d270abaf4"
}
,{
"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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index a596f03..826d98f 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -1,3 +1,8 @@",
"+a & b",
"+a << b",
"+a | b",
"+a >> b",
"+a ^ b",
" a | b",
" a >> b",
" a ^ b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "ce65ef18e5032a270bbfcef7d593c68d270abaf4..3710a2840202f8625b9a440d8b556a6d30d2b6f6"
}
,{
"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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index 826d98f..8f874fc 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -1,5 +1,6 @@",
"-a & b",
"-a << b",
"+a | b",
"+a >> b",
"+a ^ b",
" a | b",
" a >> b",
" a ^ b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "3710a2840202f8625b9a440d8b556a6d30d2b6f6..88289eb5fde1222a010efda881ce7888c282fe61"
}
,{
"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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index 8f874fc..826d98f 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -1,6 +1,5 @@",
"-a | b",
"-a >> b",
"-a ^ b",
"+a & b",
"+a << b",
" a | b",
" a >> b",
" a ^ b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "88289eb5fde1222a010efda881ce7888c282fe61..5ae589defd184d837cb3d384ab225f42299801d8"
}
,{
"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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index 826d98f..1a2a6da 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -1,8 +1,5 @@",
"-a & b",
"-a << b",
"-a | b",
"-a >> b",
"-a ^ b",
" a | b",
" a >> b",
" a ^ b",
"+a & b",
"+a << b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "5ae589defd184d837cb3d384ab225f42299801d8..29cf76ea1e49cdef2e616fed189fec268693ca87"
}
,{
"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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index 1a2a6da..97e763b 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -1,5 +1,2 @@",
"-a | b",
"-a >> b",
"-a ^ b",
" a & b",
" a << b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "29cf76ea1e49cdef2e616fed189fec268693ca87..4bb4fee464aeaf7f957b7750b0947e7c02f2a8a8"
}
,{
"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"
],
"patch": [
"diff --git a/bitwise-operator.rb b/bitwise-operator.rb",
"index 97e763b..e69de29 100644",
"--- a/bitwise-operator.rb",
"+++ b/bitwise-operator.rb",
"@@ -1,2 +0,0 @@",
"-a & b",
"-a << b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "4bb4fee464aeaf7f957b7750b0947e7c02f2a8a8..8b196e55798c1a5f125a87a869f770dca83665d6"
}]