[{ "testCaseDescription": "ruby-multiple-assignments-insert-test", "expectedResult": { "changes": { "multiple-assignments.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 2 ] } }, "summary": "Added the 'x' identifier" } ] }, "errors": { "multiple-assignments.rb": [ { "span": { "insert": { "start": [ 1, 2 ], "end": [ 1, 21 ] } }, "summary": "Added the ', y, z = 10, 20, 30' at line 1, column 2 - line 1, column 21" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index e69de29..d5c6132 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -0,0 +1 @@", "+x, y, z = 10, 20, 30" ], "gitDir": "test/corpus/repos/ruby", "shas": "3bb1c281d994cc6dc7ae3b4123ecfe7bc4e9a4ad..0e189b7286042eac7f4dc2d734ee25d7df782697" } ,{ "testCaseDescription": "ruby-multiple-assignments-replacement-insert-test", "expectedResult": { "changes": { "multiple-assignments.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 2 ] } }, "summary": "Added the 'x' identifier" } ] }, "errors": { "multiple-assignments.rb": [ { "span": { "insert": { "start": [ 1, 2 ], "end": [ 1, 21 ] } }, "summary": "Added the ', y = aVariable, 40' at line 1, column 2 - line 1, column 21" }, { "span": { "insert": { "start": [ 2, 2 ], "end": [ 3, 2 ] } }, "summary": "Added the ', y, z = 10, 20, 30\nx' at line 2, column 2 - line 3, column 2" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index d5c6132..ffc26fa 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -1 +1,3 @@", "+x, y = aVariable, 40", "+x, y, z = 10, 20, 30", " x, y, z = 10, 20, 30" ], "gitDir": "test/corpus/repos/ruby", "shas": "0e189b7286042eac7f4dc2d734ee25d7df782697..d067041f230f898d7c96eb355fe81f2d3773d2c6" } ,{ "testCaseDescription": "ruby-multiple-assignments-delete-insert-test", "expectedResult": { "changes": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 2 ] } }, "summary": "Deleted the 'x' identifier" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 2 ] } }, "summary": "Added the 'x' last exception" }, { "span": { "insert": { "start": [ 3, 4 ], "end": [ 3, 5 ] } }, "summary": "Added the 'y' identifier" }, { "span": { "insert": { "start": [ 3, 7 ], "end": [ 3, 13 ] } }, "summary": "Added the 'z' assignment" }, { "span": { "insert": { "start": [ 3, 15 ], "end": [ 3, 17 ] } }, "summary": "Added '20'" }, { "span": { "insert": { "start": [ 3, 19 ], "end": [ 3, 21 ] } }, "summary": "Added '30'" } ] }, "errors": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 2 ], "end": [ 1, 21 ] } }, "summary": "Deleted the ', y = aVariable, 40' at line 1, column 2 - line 1, column 21" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index ffc26fa..7a83199 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -1,3 +1,3 @@", "-x, y = aVariable, 40", "+x, y, z = 10, 20, 30", " x, y, z = 10, 20, 30", " x, y, z = 10, 20, 30" ], "gitDir": "test/corpus/repos/ruby", "shas": "d067041f230f898d7c96eb355fe81f2d3773d2c6..5de1631198435982d9a0a84c46169d5d6d7ea075" } ,{ "testCaseDescription": "ruby-multiple-assignments-replacement-test", "expectedResult": { "changes": { "multiple-assignments.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 2 ] } }, "summary": "Added the 'x' identifier" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 2 ] } }, "summary": "Deleted the 'x' last exception" }, { "span": { "delete": { "start": [ 3, 4 ], "end": [ 3, 5 ] } }, "summary": "Deleted the 'y' identifier" }, { "span": { "delete": { "start": [ 3, 7 ], "end": [ 3, 13 ] } }, "summary": "Deleted the 'z' assignment" }, { "span": { "delete": { "start": [ 3, 15 ], "end": [ 3, 17 ] } }, "summary": "Deleted '20'" }, { "span": { "delete": { "start": [ 3, 19 ], "end": [ 3, 21 ] } }, "summary": "Deleted '30'" } ] }, "errors": { "multiple-assignments.rb": [ { "span": { "insert": { "start": [ 1, 2 ], "end": [ 1, 21 ] } }, "summary": "Added the ', y = aVariable, 40' at line 1, column 2 - line 1, column 21" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index 7a83199..ffc26fa 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -1,3 +1,3 @@", "-x, y, z = 10, 20, 30", "+x, y = aVariable, 40", " x, y, z = 10, 20, 30", " x, y, z = 10, 20, 30" ], "gitDir": "test/corpus/repos/ruby", "shas": "5de1631198435982d9a0a84c46169d5d6d7ea075..341e71598187b95dcc7b15484bae6f11e7bf2be1" } ,{ "testCaseDescription": "ruby-multiple-assignments-delete-replacement-test", "expectedResult": { "changes": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 2 ] } }, "summary": "Deleted the 'x' identifier" }, { "span": { "replace": [ { "start": [ 3, 2 ], "end": [ 3, 21 ] }, { "start": [ 2, 2 ], "end": [ 2, 21 ] } ] }, "summary": "Replaced the ', y, z = 10, 20, 30' at line 3, column 2 - line 3, column 21 with the ', y = aVariable, 40' at line 2, column 2 - line 2, column 21" } ] }, "errors": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 2 ], "end": [ 1, 21 ] } }, "summary": "Deleted the ', y = aVariable, 40' at line 1, column 2 - line 1, column 21" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index ffc26fa..64eb96e 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -1,3 +1,2 @@", "-x, y = aVariable, 40", "-x, y, z = 10, 20, 30", " x, y, z = 10, 20, 30", "+x, y = aVariable, 40" ], "gitDir": "test/corpus/repos/ruby", "shas": "341e71598187b95dcc7b15484bae6f11e7bf2be1..a6593c018a9df2378f861b9c1ad3b9177bfa829b" } ,{ "testCaseDescription": "ruby-multiple-assignments-delete-test", "expectedResult": { "changes": {}, "errors": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 2 ], "end": [ 2, 2 ] } }, "summary": "Deleted the ', y, z = 10, 20, 30\nx' at line 1, column 2 - line 2, column 2" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index 64eb96e..9ddb504 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -1,2 +1 @@", "-x, y, z = 10, 20, 30", " x, y = aVariable, 40" ], "gitDir": "test/corpus/repos/ruby", "shas": "a6593c018a9df2378f861b9c1ad3b9177bfa829b..062f58537be463677c5fdb1f2bdb348c6b5dc35b" } ,{ "testCaseDescription": "ruby-multiple-assignments-delete-rest-test", "expectedResult": { "changes": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 2 ] } }, "summary": "Deleted the 'x' identifier" } ] }, "errors": { "multiple-assignments.rb": [ { "span": { "delete": { "start": [ 1, 2 ], "end": [ 1, 21 ] } }, "summary": "Deleted the ', y = aVariable, 40' at line 1, column 2 - line 1, column 21" } ] } }, "filePaths": [ "multiple-assignments.rb" ], "patch": [ "diff --git a/multiple-assignments.rb b/multiple-assignments.rb", "index 9ddb504..e69de29 100644", "--- a/multiple-assignments.rb", "+++ b/multiple-assignments.rb", "@@ -1 +0,0 @@", "-x, y = aVariable, 40" ], "gitDir": "test/corpus/repos/ruby", "shas": "062f58537be463677c5fdb1f2bdb348c6b5dc35b..8fdba55b3908d99741224cef85bcd7bef5dfcf2f" }]