mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "55f10a51d28326bd851c2aee8b82fc4ec818357b..361be19dc7f6a6432483013f36c5d07af1532b44"
|
|
}
|
|
,{
|
|
"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": "361be19dc7f6a6432483013f36c5d07af1532b44..df8a458af8004412c8c947cc89fcfed3b4af5122"
|
|
}
|
|
,{
|
|
"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": "df8a458af8004412c8c947cc89fcfed3b4af5122..81e24b17b20d0a132c6abe23bdf9a6fdd16a3dc9"
|
|
}
|
|
,{
|
|
"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": "81e24b17b20d0a132c6abe23bdf9a6fdd16a3dc9..3a2358dfa663b461d38a798fcc10de9a2efcd1fe"
|
|
}
|
|
,{
|
|
"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": "3a2358dfa663b461d38a798fcc10de9a2efcd1fe..561fcbc4442ad82a99216fc0c4c30ae7ce49ec7a"
|
|
}
|
|
,{
|
|
"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": "561fcbc4442ad82a99216fc0c4c30ae7ce49ec7a..f8e7763b8192e337718c7b850b52de0fe02af897"
|
|
}
|
|
,{
|
|
"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": "f8e7763b8192e337718c7b850b52de0fe02af897..f1330cd221cc5290eff93e43fae52bea85ae512b"
|
|
}]
|