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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index e69de29..943ace3 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+lambda { foo }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "ce6c04eb7c52189c6d67b990fed4932e4e23e766..01ffbf36876b86147eac9f653dac0ce9f4915ade"
|
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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index 943ace3..cb843af 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -1 +1,3 @@",
|
|
|
|
"+lambda { |x| x + 1 }",
|
|
|
|
"+lambda { foo }",
|
|
|
|
" lambda { foo }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "01ffbf36876b86147eac9f653dac0ce9f4915ade..c1d874903d86f0c091f8e9c3b5fd2759172974d5"
|
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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index cb843af..447bfb7 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-lambda { |x| x + 1 }",
|
|
|
|
"+lambda { foo }",
|
|
|
|
" lambda { foo }",
|
|
|
|
" lambda { foo }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "c1d874903d86f0c091f8e9c3b5fd2759172974d5..bb6bde96443a965ba381980062ceca6f0e149091"
|
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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index 447bfb7..cb843af 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-lambda { foo }",
|
|
|
|
"+lambda { |x| x + 1 }",
|
|
|
|
" lambda { foo }",
|
|
|
|
" lambda { foo }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "bb6bde96443a965ba381980062ceca6f0e149091..96f699cc68e4ef94fd15989ae0232f008b30a447"
|
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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index cb843af..4ebf1f8 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -1,3 +1,2 @@",
|
|
|
|
"-lambda { |x| x + 1 }",
|
|
|
|
"-lambda { foo }",
|
|
|
|
" lambda { foo }",
|
|
|
|
"+lambda { |x| x + 1 }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "96f699cc68e4ef94fd15989ae0232f008b30a447..755f0e33eb48dc34e1d31c853c3190bd49d93d56"
|
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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index 4ebf1f8..dfe1b8b 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -1,2 +1 @@",
|
|
|
|
"-lambda { foo }",
|
|
|
|
" lambda { |x| x + 1 }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "755f0e33eb48dc34e1d31c853c3190bd49d93d56..6356d2193447b1435a16759e047fa0584cf6a060"
|
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 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/lambda.rb b/lambda.rb",
|
|
|
|
"index dfe1b8b..e69de29 100644",
|
|
|
|
"--- a/lambda.rb",
|
|
|
|
"+++ b/lambda.rb",
|
|
|
|
"@@ -1 +0,0 @@",
|
|
|
|
"-lambda { |x| x + 1 }"
|
|
|
|
],
|
2016-10-27 19:24:28 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-06 01:09:50 +03:00
|
|
|
"shas": "6356d2193447b1435a16759e047fa0584cf6a060..61eaa653015a52dcb006becd8a923379d8bef53e"
|
2016-10-27 19:24:28 +03:00
|
|
|
}]
|