2016-10-24 20:43:31 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-06 22:23:10 +03:00
|
|
|
"summary": "Added the 'a || b' binary statement"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index e69de29..ba0778d 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+a || b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "1ff4601a166d78743c85dba523065e31a5264033..b75e9f7218b20c7964eb31ae31ae5e6b5f9093a8"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-06 22:23:10 +03:00
|
|
|
"summary": "Added the 'a && b' binary statement"
|
2016-10-24 20:43:31 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-06 22:23:10 +03:00
|
|
|
"summary": "Added the 'a || b' binary statement"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index ba0778d..2d34b94 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -1 +1,3 @@",
|
|
|
|
"+a && b",
|
|
|
|
"+a || b",
|
|
|
|
" a || b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "b75e9f7218b20c7964eb31ae31ae5e6b5f9093a8..35d3383ded9a4ae609352ffc16e048d5331d1d5d"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-delete-insert-test",
|
|
|
|
"expectedResult": {
|
2016-12-06 22:23:10 +03:00
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a && b' binary statement with the 'a || b' binary statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-10-24 20:43:31 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index 2d34b94..2c61248 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-a && b",
|
|
|
|
"+a || b",
|
|
|
|
" a || b",
|
|
|
|
" a || b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "35d3383ded9a4ae609352ffc16e048d5331d1d5d..e3532e0fbf45237d7287d0fc020b00479ebbe477"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-06 22:23:10 +03:00
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a || b' binary statement with the 'a && b' binary statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-10-24 20:43:31 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index 2c61248..2d34b94 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-a || b",
|
|
|
|
"+a && b",
|
|
|
|
" a || b",
|
|
|
|
" a || b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "e3532e0fbf45237d7287d0fc020b00479ebbe477..a8db8b305a4a179c5bc4547f89c04f557671d934"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-06 22:23:10 +03:00
|
|
|
"summary": "Deleted the 'a && b' binary statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a || b' binary statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a && b' binary statement"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index 2d34b94..32a41c9 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -1,3 +1,2 @@",
|
|
|
|
"-a && b",
|
|
|
|
"-a || b",
|
|
|
|
" a || b",
|
|
|
|
"+a && b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "a8db8b305a4a179c5bc4547f89c04f557671d934..abf6b461c58ff7d013954ce3e992f52cc953ab48"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-06 22:23:10 +03:00
|
|
|
"summary": "Deleted the 'a || b' binary statement"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index 32a41c9..b0af58d 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -1,2 +1 @@",
|
|
|
|
"-a || b",
|
|
|
|
" a && b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "abf6b461c58ff7d013954ce3e992f52cc953ab48..4ffa7df22283c90aed2debfa5390513761d0939b"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-boolean-operator-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"boolean-operator.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-06 22:23:10 +03:00
|
|
|
"summary": "Deleted the 'a && b' binary statement"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"boolean-operator.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
|
|
|
|
"index b0af58d..e69de29 100644",
|
|
|
|
"--- a/boolean-operator.rb",
|
|
|
|
"+++ b/boolean-operator.rb",
|
|
|
|
"@@ -1 +0,0 @@",
|
|
|
|
"-a && b"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-11 00:58:40 +03:00
|
|
|
"shas": "4ffa7df22283c90aed2debfa5390513761d0939b..88429f0be2cb1dafc9c8b1339ae88968f72b0acd"
|
2016-10-24 20:43:31 +03:00
|
|
|
}]
|