2016-10-26 22:54:21 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-while-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'foo' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'run' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index e69de29..9990bdf 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -0,0 +1,3 @@",
|
|
|
|
"+while foo do",
|
|
|
|
"+end",
|
|
|
|
"+foo while run"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "0ea1cbaad545a54267144f11a8d792fca30cf547..1c849fa3191de04f500a9534aae7f04708bae91e"
|
2016-10-26 22:54:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-while-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'foo' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'foo' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'run' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index 9990bdf..5a24260 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -1,3 +1,9 @@",
|
|
|
|
"+while foo",
|
|
|
|
"+ bar",
|
|
|
|
"+end",
|
|
|
|
"+while foo do",
|
|
|
|
"+end",
|
|
|
|
"+foo while run",
|
|
|
|
" while foo do",
|
|
|
|
" end",
|
|
|
|
" foo while run"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "1c849fa3191de04f500a9534aae7f04708bae91e..ce45201d611ff1a381bee7c0d7b4eba2a5261228"
|
2016-10-26 22:54:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-while-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'bar' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'run' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index 5a24260..c0c26cd 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -1,6 +1,6 @@",
|
|
|
|
"-while foo",
|
|
|
|
"- bar",
|
|
|
|
"+while foo do",
|
|
|
|
" end",
|
|
|
|
"+foo while run",
|
|
|
|
" while foo do",
|
|
|
|
" end",
|
|
|
|
" foo while run"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "ce45201d611ff1a381bee7c0d7b4eba2a5261228..76f1616d8999184e0058a66f6871ca4f039f5e1c"
|
2016-10-26 22:54:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-while-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'bar' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'run' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index c0c26cd..5a24260 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -1,6 +1,6 @@",
|
|
|
|
"-while foo do",
|
|
|
|
"+while foo",
|
|
|
|
"+ bar",
|
|
|
|
" end",
|
|
|
|
"-foo while run",
|
|
|
|
" while foo do",
|
|
|
|
" end",
|
|
|
|
" foo while run"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "76f1616d8999184e0058a66f6871ca4f039f5e1c..d2fb5c6486f918b1d250f5561389fec71fadc005"
|
2016-10-26 22:54:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-while-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'foo' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'foo' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'run' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'foo' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index 5a24260..3763a72 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -1,9 +1,6 @@",
|
|
|
|
"-while foo",
|
|
|
|
"- bar",
|
|
|
|
"-end",
|
|
|
|
" while foo do",
|
|
|
|
" end",
|
|
|
|
" foo while run",
|
|
|
|
"-while foo do",
|
|
|
|
"+while foo",
|
|
|
|
"+ bar",
|
|
|
|
" end",
|
|
|
|
"-foo while run"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "d2fb5c6486f918b1d250f5561389fec71fadc005..deb693d7595e21ca8bf5d127aba20362b01259ee"
|
2016-10-26 22:54:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-while-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'foo' while statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'run' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index 3763a72..57e673b 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -1,6 +1,3 @@",
|
|
|
|
"-while foo do",
|
|
|
|
"-end",
|
|
|
|
"-foo while run",
|
|
|
|
" while foo",
|
|
|
|
" bar",
|
|
|
|
" end"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "deb693d7595e21ca8bf5d127aba20362b01259ee..b96838d1e529db101b960f04c66dd54aeec21d92"
|
2016-10-26 22:54:21 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-while-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'foo' while statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/while.rb b/while.rb",
|
|
|
|
"index 57e673b..e69de29 100644",
|
|
|
|
"--- a/while.rb",
|
|
|
|
"+++ b/while.rb",
|
|
|
|
"@@ -1,3 +0,0 @@",
|
|
|
|
"-while foo",
|
|
|
|
"- bar",
|
|
|
|
"-end"
|
|
|
|
],
|
2016-10-26 22:54:21 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "b96838d1e529db101b960f04c66dd54aeec21d92..527524ae442ea64d2a0f8d057a8f3f29091b94b7"
|
2016-10-26 22:54:21 +03:00
|
|
|
}]
|