2016-10-24 20:43:31 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"comparision-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x < y' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a > b' relational operator"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "d9fd71dd552ac1126cc260256daa287ec4fa5a8f",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "9c481cdecb8540f664dd3494fec9eb4210f3d6e0"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"comparision-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x <= y' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a >= b' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x < y' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a > b' relational operator"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "9c481cdecb8540f664dd3494fec9eb4210f3d6e0",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "595ce7dbaa3e6076f5674cdfc41e5cf76d0b3439"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "595ce7dbaa3e6076f5674cdfc41e5cf76d0b3439",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "efd02b510cb25766ae71ca6f00b4a8b8bddbaa3b"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "efd02b510cb25766ae71ca6f00b4a8b8bddbaa3b",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "40fbec69175935909607707814faeab8eef52159"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"comparision-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x <= y' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a >= b' relational operator"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "40fbec69175935909607707814faeab8eef52159",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "147fa858dd2158f733f389f5b58e2f3a7c0b3f83"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"comparision-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x < y' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a > b' relational operator"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "147fa858dd2158f733f389f5b58e2f3a7c0b3f83",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "79f14476f0c4c49b3eb87e3f4f400998e990c144"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-comparision-operator-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"comparision-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x <= y' relational operator"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a >= b' relational operator"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comparision-operator.rb"
|
|
|
|
],
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha1": "79f14476f0c4c49b3eb87e3f4f400998e990c144",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-10-27 01:44:53 +03:00
|
|
|
"sha2": "5f5cfc07db459d0020af919b7841bb86c24e5be0"
|
2016-10-24 20:43:31 +03:00
|
|
|
}]
|