mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
324 lines
9.5 KiB
JSON
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": "79b196cace027a076f4ba235171fd4f409bdaba9..60bbbb2dee1ceb124b3a5732a1f3ee63ec515497"
|
|
}
|
|
,{
|
|
"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": "60bbbb2dee1ceb124b3a5732a1f3ee63ec515497..7331cd0d8952471a92cddf2c85b3a8a3ce74846d"
|
|
}
|
|
,{
|
|
"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": "7331cd0d8952471a92cddf2c85b3a8a3ce74846d..0a03996c67d51dc60959a36d35bb2bb781eff19b"
|
|
}
|
|
,{
|
|
"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": "0a03996c67d51dc60959a36d35bb2bb781eff19b..864617da3f66a3b16b6ab2c7c63a0a449669fc01"
|
|
}
|
|
,{
|
|
"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": "864617da3f66a3b16b6ab2c7c63a0a449669fc01..0bee45a0f42e71f1162b4150b0647cf13a05b8f8"
|
|
}
|
|
,{
|
|
"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": "0bee45a0f42e71f1162b4150b0647cf13a05b8f8..4a8ac79d914f73b9e92da2948689badc6676ca31"
|
|
}
|
|
,{
|
|
"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": "4a8ac79d914f73b9e92da2948689badc6676ca31..39e3abbd0e3332afc2314759fdd350cba39b8e28"
|
|
}]
|