2016-10-27 19:24:28 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-lambda-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added an anonymous() function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "9ecc2a471ad5c0c86f510ca09aac442da2bd6a8b",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "c0546cb82a30cc134cb1093d632373a2f3b9c7bc"
|
2016-10-27 19:24:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-lambda-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added an anonymous(x) function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added an anonymous() function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "c0546cb82a30cc134cb1093d632373a2f3b9c7bc",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "769b0017d54af5460b9314f6505d01bca84b26d0"
|
2016-10-27 19:24:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-lambda-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced an anonymous(x) function with an anonymous() function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "769b0017d54af5460b9314f6505d01bca84b26d0",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "5cdd114b41a2b4b9944046c460bfb5ebd6fe5ca5"
|
2016-10-27 19:24:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-lambda-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced an anonymous() function with an anonymous(x) function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "5cdd114b41a2b4b9944046c460bfb5ebd6fe5ca5",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "69e98d81bbcec1aaacd06d6f393e025452c82b4e"
|
2016-10-27 19:24:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-lambda-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted an anonymous(x) function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted an anonymous() function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added an anonymous(x) function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "69e98d81bbcec1aaacd06d6f393e025452c82b4e",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "f16e9d8ef1296bc000d691d0ffca85fee00c5580"
|
2016-10-27 19:24:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-lambda-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted an anonymous() function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "f16e9d8ef1296bc000d691d0ffca85fee00c5580",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "ea7b398f8e338e5b7118003a40bcad036eb9db19"
|
2016-10-27 19:24:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-lambda-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"lambda.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted an anonymous(x) function"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"lambda.rb"
|
|
|
|
],
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha1": "ea7b398f8e338e5b7118003a40bcad036eb9db19",
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 00:27:47 +03:00
|
|
|
"sha2": "11c1f670003a6d95a99b37f02ad9c5628e60c3cd"
|
2016-10-27 19:24:28 +03:00
|
|
|
}]
|