[{ "testCaseDescription": "ruby-ternary-insert-test", "expectedResult": { "changes": { "ternary.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 26 ] } }, "summary": "Added the 'condition' ternary expression" } ] }, "errors": {} }, "filePaths": [ "ternary.rb" ], "sha1": "47a6d62d4cd51087e85e92ca0569ac52b2c8541d", "gitDir": "test/corpus/repos/ruby", "sha2": "5a4d983c13ab359237d1191ae803559e6df9bfcc" } ,{ "testCaseDescription": "ruby-ternary-replacement-insert-test", "expectedResult": { "changes": { "ternary.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 1, 26 ] }, { "start": [ 1, 1 ], "end": [ 4, 1 ] } ] }, "summary": "Replaced the 'condition' ternary expression with the 'if condition then case 1 else case2\ncondition ? case1 : case2\ncondition ? case1 : case2\n' at line 1, column 1 - line 4, column 1" } ] }, "errors": {} }, "filePaths": [ "ternary.rb" ], "sha1": "5a4d983c13ab359237d1191ae803559e6df9bfcc", "gitDir": "test/corpus/repos/ruby", "sha2": "4b1739d1429acad9ebd11c3b7ffaa88211a66cca" } ,{ "testCaseDescription": "ruby-ternary-delete-insert-test", "expectedResult": { "changes": { "ternary.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 4, 1 ] }, { "start": [ 1, 1 ], "end": [ 1, 26 ] } ] }, "summary": "Replaced the 'if condition then case 1 else case2\ncondition ? case1 : case2\ncondition ? case1 : case2\n' at line 1, column 1 - line 4, column 1 with the 'condition' ternary expression" } ] }, "errors": {} }, "filePaths": [ "ternary.rb" ], "sha1": "4b1739d1429acad9ebd11c3b7ffaa88211a66cca", "gitDir": "test/corpus/repos/ruby", "sha2": "1e9f6eb8eb06d38b3d08ccfd154d87e548ae899c" } ,{ "testCaseDescription": "ruby-ternary-replacement-test", "expectedResult": { "changes": { "ternary.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 1, 26 ] }, { "start": [ 1, 1 ], "end": [ 4, 1 ] } ] }, "summary": "Replaced the 'condition' ternary expression with the 'if condition then case 1 else case2\ncondition ? case1 : case2\ncondition ? case1 : case2\n' at line 1, column 1 - line 4, column 1" } ] }, "errors": {} }, "filePaths": [ "ternary.rb" ], "sha1": "1e9f6eb8eb06d38b3d08ccfd154d87e548ae899c", "gitDir": "test/corpus/repos/ruby", "sha2": "c7b3697a090760124d7ae22e565bb46b934942aa" } ,{ "testCaseDescription": "ruby-ternary-delete-replacement-test", "expectedResult": { "changes": { "ternary.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 4, 1 ] }, { "start": [ 1, 1 ], "end": [ 1, 26 ] } ] }, "summary": "Replaced the 'if condition then case 1 else case2\ncondition ? case1 : case2\ncondition ? case1 : case2\n' at line 1, column 1 - line 4, column 1 with the 'condition' ternary expression" } ] }, "errors": {} }, "filePaths": [ "ternary.rb" ], "sha1": "c7b3697a090760124d7ae22e565bb46b934942aa", "gitDir": "test/corpus/repos/ruby", "sha2": "3d30d71597589e5314f26823b2dcfd00eade5748" } ,{ "testCaseDescription": "ruby-ternary-delete-test", "expectedResult": { "changes": { "ternary.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 1, 26 ] }, { "start": [ 1, 1 ], "end": [ 2, 1 ] } ] }, "summary": "Replaced the 'condition' ternary expression with the 'if condition then case 1 else case2\n' at line 1, column 1 - line 2, column 1" } ] }, "errors": {} }, "filePaths": [ "ternary.rb" ], "sha1": "3d30d71597589e5314f26823b2dcfd00eade5748", "gitDir": "test/corpus/repos/ruby", "sha2": "2b82f9f4a2ce0d93d473a51b67418e719d7d70c4" } ,{ "testCaseDescription": "ruby-ternary-delete-rest-test", "expectedResult": { "changes": {}, "errors": { "ternary.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 2, 1 ] } }, "summary": "Deleted the 'if condition then case 1 else case2\n' at line 1, column 1 - line 2, column 1" } ] } }, "filePaths": [ "ternary.rb" ], "sha1": "2b82f9f4a2ce0d93d473a51b67418e719d7d70c4", "gitDir": "test/corpus/repos/ruby", "sha2": "6ad5bfa34184ee2b10bd0c358932ad5a496867c7" }]