mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
1313 lines
40 KiB
JSON
1313 lines
40 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-delimiter-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q<a<b>c> string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index e69de29..8ec39b8 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -0,0 +1,6 @@",
|
|
"+%q#a#",
|
|
"+%q<a<b>c>",
|
|
"+%#a#",
|
|
"+%Q#a#",
|
|
"+%<a<b>c>",
|
|
"+%Q<a<b>c>"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "ef8d34476c23317120bf744df9d41b9110a04c03..1b0f7afd8b56c527a93bcf77cd130a197736aae8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q<a<b>c> string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index 8ec39b8..5b0f7ec 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -1,3 +1,15 @@",
|
|
"+%q/b/",
|
|
"+%q{d{e}f}",
|
|
"+%/b/",
|
|
"+%Q/b/",
|
|
"+%{d{e}f}",
|
|
"+%Q{d{e}f}",
|
|
"+%q#a#",
|
|
"+%q<a<b>c>",
|
|
"+%#a#",
|
|
"+%Q#a#",
|
|
"+%<a<b>c>",
|
|
"+%Q<a<b>c>",
|
|
" %q#a#",
|
|
" %q<a<b>c>",
|
|
" %#a#"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "1b0f7afd8b56c527a93bcf77cd130a197736aae8..4e8d0a2cbe3dfca073f23bbb72b1461e5963338e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the %q/b/ string with the %q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q{d{e}f} string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index 5b0f7ec..64d6df4 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -1,9 +1,9 @@",
|
|
"-%q/b/",
|
|
"-%q{d{e}f}",
|
|
"-%/b/",
|
|
"-%Q/b/",
|
|
"-%{d{e}f}",
|
|
"-%Q{d{e}f}",
|
|
"+%q#a#",
|
|
"+%q<a<b>c>",
|
|
"+%#a#",
|
|
"+%Q#a#",
|
|
"+%<a<b>c>",
|
|
"+%Q<a<b>c>",
|
|
" %q#a#",
|
|
" %q<a<b>c>",
|
|
" %#a#"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "4e8d0a2cbe3dfca073f23bbb72b1461e5963338e..413fa9f465cd1591ad3c753e6d5d160ac0503019"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the %q#a# string with the %q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the %q<a<b>c> string with the %/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the %#a# string with the %Q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q<a<b>c> string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index 64d6df4..5b0f7ec 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -1,9 +1,9 @@",
|
|
"-%q#a#",
|
|
"-%q<a<b>c>",
|
|
"-%#a#",
|
|
"-%Q#a#",
|
|
"-%<a<b>c>",
|
|
"-%Q<a<b>c>",
|
|
"+%q/b/",
|
|
"+%q{d{e}f}",
|
|
"+%/b/",
|
|
"+%Q/b/",
|
|
"+%{d{e}f}",
|
|
"+%Q{d{e}f}",
|
|
" %q#a#",
|
|
" %q<a<b>c>",
|
|
" %#a#"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "413fa9f465cd1591ad3c753e6d5d160ac0503019..2a8902902ea697fda4a67838615f8b6a8e108353"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the %Q{d{e}f} string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index 5b0f7ec..2095136 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -1,18 +1,12 @@",
|
|
"-%q/b/",
|
|
"-%q{d{e}f}",
|
|
"-%/b/",
|
|
"-%Q/b/",
|
|
"-%{d{e}f}",
|
|
"-%Q{d{e}f}",
|
|
"-%q#a#",
|
|
"-%q<a<b>c>",
|
|
"-%#a#",
|
|
"-%Q#a#",
|
|
"-%<a<b>c>",
|
|
"-%Q<a<b>c>",
|
|
" %q#a#",
|
|
" %q<a<b>c>",
|
|
" %#a#",
|
|
" %Q#a#",
|
|
" %<a<b>c>",
|
|
" %Q<a<b>c>",
|
|
"+%q/b/",
|
|
"+%q{d{e}f}",
|
|
"+%/b/",
|
|
"+%Q/b/",
|
|
"+%{d{e}f}",
|
|
"+%Q{d{e}f}"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "2a8902902ea697fda4a67838615f8b6a8e108353..c03569b5f580bc90dc6d65cdd1ec2c719444ce89"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q#a# string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %<a<b>c> string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q<a<b>c> string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index 2095136..3843090 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -1,9 +1,3 @@",
|
|
"-%q#a#",
|
|
"-%q<a<b>c>",
|
|
"-%#a#",
|
|
"-%Q#a#",
|
|
"-%<a<b>c>",
|
|
"-%Q<a<b>c>",
|
|
" %q/b/",
|
|
" %q{d{e}f}",
|
|
" %/b/"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "c03569b5f580bc90dc6d65cdd1ec2c719444ce89..e9178c14220997160dfe6c89506972e0b7e1f258"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-delimiter-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"delimiter.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %q{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q/b/ string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %{d{e}f} string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the %Q{d{e}f} string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"delimiter.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/delimiter.rb b/delimiter.rb",
|
|
"index 3843090..e69de29 100644",
|
|
"--- a/delimiter.rb",
|
|
"+++ b/delimiter.rb",
|
|
"@@ -1,6 +0,0 @@",
|
|
"-%q/b/",
|
|
"-%q{d{e}f}",
|
|
"-%/b/",
|
|
"-%Q/b/",
|
|
"-%{d{e}f}",
|
|
"-%Q{d{e}f}"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "e9178c14220997160dfe6c89506972e0b7e1f258..b8a1e5f549bc1fa5a1424093d499d32fa0987cee"
|
|
}]
|