1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/lambda-dash-rocket.json
2016-11-03 16:02:56 -07:00

373 lines
11 KiB
JSON

[{
"testCaseDescription": "ruby-lambda-dash-rocket-insert-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Added an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index e69de29..87e5852 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -0,0 +1,4 @@",
"+-> (a, b, c) {",
"+ 1",
"+ 2",
"+}"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "39e3abbd0e3332afc2314759fdd350cba39b8e28..39eba620219e1cc7172b218e7f7f4cc0b945515e"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-replacement-insert-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Added an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
5,
2
]
}
},
"summary": "Added an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 87e5852..3daf118 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,3 +1,8 @@",
"+-> { foo }",
"+-> (a, b, c) {",
"+ 1",
"+ 2",
"+}",
" -> (a, b, c) {",
" 1",
" 2"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "39eba620219e1cc7172b218e7f7f4cc0b945515e..db5ebcd81ad82fbb223f7ba862191d01280823bd"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-insert-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
11
]
},
{
"start": [
1,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced an anonymous() function with an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 3daf118..53ea219 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,4 +1,7 @@",
"--> { foo }",
"+-> (a, b, c) {",
"+ 1",
"+ 2",
"+}",
" -> (a, b, c) {",
" 1",
" 2"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "db5ebcd81ad82fbb223f7ba862191d01280823bd..f31ea619acedac7aafa78d4821e3359c29837a2e"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-replacement-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
4,
2
]
},
{
"start": [
1,
1
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced an anonymous(a, b, c) function with an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 53ea219..3daf118 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,7 +1,4 @@",
"--> (a, b, c) {",
"- 1",
"- 2",
"-}",
"+-> { foo }",
" -> (a, b, c) {",
" 1",
" 2"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "f31ea619acedac7aafa78d4821e3359c29837a2e..78558177fbe1e8a9b635366d37dca7bc63c35a89"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-replacement-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted an anonymous(a, b, c) function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
11
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 3daf118..5e26f49 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,9 +1,5 @@",
"--> { foo }",
"--> (a, b, c) {",
"- 1",
"- 2",
"-}",
" -> (a, b, c) {",
" 1",
" 2",
" }",
"+-> { foo }"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "78558177fbe1e8a9b635366d37dca7bc63c35a89..1b5da246d2f7c8e084437f516a1e0acef8a668b5"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 5e26f49..72c62f8 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,5 +1 @@",
"--> (a, b, c) {",
"- 1",
"- 2",
"-}",
" -> { foo }"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "1b5da246d2f7c8e084437f516a1e0acef8a668b5..885c3dd4bc6b78521a51d05585cd3600901ebc5f"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-rest-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 72c62f8..e69de29 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1 +0,0 @@",
"--> { foo }"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "885c3dd4bc6b78521a51d05585cd3600901ebc5f..18022ae6ebbe9a88b3eaf0cfa0654e8f8bc5dd01"
}]