1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries-todo/ruby/math_assignment.json

1049 lines
33 KiB
JSON
Raw Normal View History

2016-10-22 01:52:40 +03:00
[{
"testCaseDescription": "ruby-math_assignment-insert-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
1,
6
],
"end": [
1,
7
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
2,
6
],
"end": [
2,
7
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
}
]
},
"errors": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added the '=' at line 1, column 4 - line 1, column 5"
},
{
"span": {
"insert": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Added the '=' at line 2, column 4 - line 2, column 5"
},
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added the '=' at line 3, column 4 - line 3, column 5"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
5,
8
]
}
},
"summary": "Added the '/= 1\nx **= 1' at line 4, column 3 - line 5, column 8"
}
]
}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "97ba81c95001ed500156d6a5f20a820167b68071",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8ba96cb46254f256ef79a5aceb3d7b25083a37a1"
}
,{
"testCaseDescription": "ruby-math_assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
2,
6
],
"end": [
2,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
10,
7
],
"end": [
10,
8
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
3
],
"end": [
1,
4
]
}
},
"summary": "Added '=' at line 1, column 3 - line 1, column 4"
},
{
"span": {
"insert": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Added '=' at line 2, column 4 - line 2, column 5"
},
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added '=' at line 3, column 4 - line 3, column 5"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
10,
6
]
}
},
"summary": "Added '/= 1\nx **= 1\nx += 1\nx -= 1\nx *= 1\nx /= 1\nx **=' at line 4, column 3 - line 10, column 6"
}
]
}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "8ba96cb46254f256ef79a5aceb3d7b25083a37a1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5b63b88290fed7528b6daef3ee00958deaf6d117"
}
,{
"testCaseDescription": "ruby-math_assignment-delete-insert-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced '2' with '1'"
}
]
},
"errors": {}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "5b63b88290fed7528b6daef3ee00958deaf6d117",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a5dd683265dff83273221714c75c4b3e201c0267"
}
,{
"testCaseDescription": "ruby-math_assignment-replacement-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '1' with '2'"
}
]
},
"errors": {}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "a5dd683265dff83273221714c75c4b3e201c0267",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e57a1c1f2aae91311bf392a205e2f21abb4a68e7"
}
,{
"testCaseDescription": "ruby-math_assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
2,
6
],
"end": [
2,
7
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
10,
7
],
"end": [
10,
8
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
10,
7
],
"end": [
10,
8
]
}
},
"summary": "Added '1'"
},
{
"span": {
"delete": {
"start": [
14,
1
],
"end": [
14,
2
]
}
},
"summary": "Deleted the 'x' identifier"
}
]
},
"errors": {
"math_assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
3
],
"end": [
1,
4
]
}
},
"summary": "Deleted '=' at line 1, column 3 - line 1, column 4"
},
{
"span": {
"delete": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Deleted '=' at line 2, column 4 - line 2, column 5"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted '=' at line 3, column 4 - line 3, column 5"
},
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
10,
6
]
}
},
"summary": "Deleted '/= 1\nx **= 1\nx += 1\nx -= 1\nx *= 1\nx /= 1\nx **=' at line 4, column 3 - line 10, column 6"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
10,
6
]
}
},
"summary": "Added '/= 1\nx **= 1\nx+= 2\nx -= 1\nx *= 1\nx /= 1\nx **=' at line 4, column 3 - line 10, column 6"
},
{
"span": {
"delete": {
"start": [
14,
3
],
"end": [
15,
8
]
}
},
"summary": "Deleted the '/= 1\nx **= 1' at line 14, column 3 - line 15, column 8"
}
]
}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "e57a1c1f2aae91311bf392a205e2f21abb4a68e7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "35b354affe5b0f64f3cd9e2ffcde18da30c5530d"
}
,{
"testCaseDescription": "ruby-math_assignment-delete-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '1' with '2'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
10,
7
],
"end": [
10,
8
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
5,
8
]
}
},
"summary": "Added the '/= 1\nx **= 1' at line 4, column 3 - line 5, column 8"
},
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
10,
6
]
}
},
"summary": "Deleted '/= 1\nx **= 1\nx+= 2\nx -= 1\nx *= 1\nx /= 1\nx **=' at line 4, column 3 - line 10, column 6"
}
]
}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "35b354affe5b0f64f3cd9e2ffcde18da30c5530d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "df792d78903b1a2efd2e5f7e7b1aa8c6f08eb10d"
}
,{
"testCaseDescription": "ruby-math_assignment-delete-rest-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
2,
6
],
"end": [
2,
7
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'x' identifier"
}
]
},
"errors": {
"math_assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
3
],
"end": [
1,
4
]
}
},
"summary": "Deleted the '=' at line 1, column 3 - line 1, column 4"
},
{
"span": {
"delete": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Deleted the '=' at line 2, column 4 - line 2, column 5"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted the '=' at line 3, column 4 - line 3, column 5"
},
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
5,
8
]
}
},
"summary": "Deleted the '/= 1\nx **= 1' at line 4, column 3 - line 5, column 8"
}
]
}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "df792d78903b1a2efd2e5f7e7b1aa8c6f08eb10d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "01c5cfcd41fd9dd9d461d9c1979427b3fa002118"
}]