1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/ruby/percent-array.json
2017-01-25 20:27:46 -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": "50239ae63445ee12774182b323b735f392bdacdf..a7e3abb247fb7745756dbddf2308729399f71ef4"
}
,{
"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": "a7e3abb247fb7745756dbddf2308729399f71ef4..e88a9b1d3365387c6fb8441bb04c0825192094c7"
}
,{
"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": "e88a9b1d3365387c6fb8441bb04c0825192094c7..f8d2dfe3f1ffef4408e4048d6c0e6fe56c840999"
}
,{
"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": "f8d2dfe3f1ffef4408e4048d6c0e6fe56c840999..2ee908509e74e7d42ec52ca757f059011679a894"
}
,{
"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": "2ee908509e74e7d42ec52ca757f059011679a894..d997f76ec24b13f760a5c47f43fffb07a3ada7f5"
}
,{
"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": "d997f76ec24b13f760a5c47f43fffb07a3ada7f5..4847fda42bb24f9729ada1a5bbfd42820728496b"
}
,{
"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": "4847fda42bb24f9729ada1a5bbfd42820728496b..0caec37a9c91cd2e743845adbd4fd52f27f01026"
}]