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/percent-array.json
2017-01-10 16:58:40 -05:00

324 lines
9.5 KiB
JSON

[{
"testCaseDescription": "ruby-percent-array-insert-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Added the '%w(one two)' array"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index e69de29..f2bc7a3 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -0,0 +1 @@",
"+%w(one two)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "72c289d2393a3dd6ecfba0fe720e099f8fc60c60..caac1821611361d1b9951c784490aa6a304727ad"
}
,{
"testCaseDescription": "ruby-percent-array-replacement-insert-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Added the '%W(one #{b} three)' array"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Added the '%w(one two)' array"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index f2bc7a3..a706392 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -1 +1,3 @@",
"+%W(one #{b} three)",
"+%w(one two)",
" %w(one two)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "caac1821611361d1b9951c784490aa6a304727ad..59c5be5c461d8f485159e2beaae5657f7d19f2ed"
}
,{
"testCaseDescription": "ruby-percent-array-delete-insert-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"delete": {
"start": [
1,
10
],
"end": [
1,
11
]
}
},
"summary": "Deleted the 'b' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index a706392..339b21e 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -1,3 +1,3 @@",
"-%W(one #{b} three)",
"+%w(one two)",
" %w(one two)",
" %w(one two)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "59c5be5c461d8f485159e2beaae5657f7d19f2ed..80482761e274311c0ce7cab32e8f50fe1e4b1895"
}
,{
"testCaseDescription": "ruby-percent-array-replacement-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"insert": {
"start": [
1,
10
],
"end": [
1,
11
]
}
},
"summary": "Added the 'b' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index 339b21e..a706392 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -1,3 +1,3 @@",
"-%w(one two)",
"+%W(one #{b} three)",
" %w(one two)",
" %w(one two)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "80482761e274311c0ce7cab32e8f50fe1e4b1895..4f4064979e61fb375eb2c67823b3a72754a421d3"
}
,{
"testCaseDescription": "ruby-percent-array-delete-replacement-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the '%W(one #{b} three)' array"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Deleted the '%w(one two)' array"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Added the '%W(one #{b} three)' array"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index a706392..1e3e29b 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -1,3 +1,2 @@",
"-%W(one #{b} three)",
"-%w(one two)",
" %w(one two)",
"+%W(one #{b} three)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "4f4064979e61fb375eb2c67823b3a72754a421d3..1e1b7123ee7483b645d279b5f1e509e2301149eb"
}
,{
"testCaseDescription": "ruby-percent-array-delete-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Deleted the '%w(one two)' array"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index 1e3e29b..54153c4 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -1,2 +1 @@",
"-%w(one two)",
" %W(one #{b} three)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "1e1b7123ee7483b645d279b5f1e509e2301149eb..a4cf0ecdc24ddf0212a88bb52cb78a99522a291d"
}
,{
"testCaseDescription": "ruby-percent-array-delete-rest-test",
"expectedResult": {
"changes": {
"percent-array.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the '%W(one #{b} three)' array"
}
]
},
"errors": {}
},
"filePaths": [
"percent-array.rb"
],
"patch": [
"diff --git a/percent-array.rb b/percent-array.rb",
"index 54153c4..e69de29 100644",
"--- a/percent-array.rb",
"+++ b/percent-array.rb",
"@@ -1 +0,0 @@",
"-%W(one #{b} three)"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "a4cf0ecdc24ddf0212a88bb52cb78a99522a291d..69993754f505cc3c6f9bb8c3479beb47275e576e"
}]