2016-10-24 20:43:31 +03:00
|
|
|
[{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-insert-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' conditional assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "3c8ecb84c45ce828f5cd9aca26ae38273556fe8e",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "7b333e2d2a9f2f1152ea102d7511bb69fd29755f"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-replacement-insert-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' conditional assignment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' conditional assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "7b333e2d2a9f2f1152ea102d7511bb69fd29755f",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "9666ead2bf7e335c1f025a04547b0f91327b57be"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-delete-insert-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '7' with '5'"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "9666ead2bf7e335c1f025a04547b0f91327b57be",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "a1abbb73bebe888c871919b566f7ce037b5ca759"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-replacement-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '5' with '7'"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "a1abbb73bebe888c871919b566f7ce037b5ca759",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "3a358f1595e45feb2bbdc53427d840f0ba6c1420"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-delete-replacement-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' conditional assignment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' conditional assignment"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' conditional assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "3a358f1595e45feb2bbdc53427d840f0ba6c1420",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "b8de107e3edcb1f33f28e46968a05d1f461eae94"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-delete-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' conditional assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "b8de107e3edcb1f33f28e46968a05d1f461eae94",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "ad23021c7e12d4bd686e6b6a0c26915eaac4e95f"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-31 23:21:58 +03:00
|
|
|
"testCaseDescription": "ruby-conditional-assignment-delete-rest-test",
|
2016-10-24 20:43:31 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb": [
|
2016-10-24 20:43:31 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' conditional assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-31 23:21:58 +03:00
|
|
|
"conditional-assignment.rb"
|
2016-10-24 20:43:31 +03:00
|
|
|
],
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha1": "ad23021c7e12d4bd686e6b6a0c26915eaac4e95f",
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-02 20:52:40 +03:00
|
|
|
"sha2": "4b0947a8e2e4b499afa4bb5c101a7650e5908ec7"
|
2016-10-24 20:43:31 +03:00
|
|
|
}]
|