1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/math_assignment.json

647 lines
20 KiB
JSON
Raw Normal View History

2016-10-24 20:43:31 +03:00
[{
"testCaseDescription": "ruby-math_assignment-insert-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "104e6d32e5d8a1fbcd9557785a8ebd03051fb8cf",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "37e692f54262e2c9680110316b18d2ec87cf615a"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-math_assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
2,
2016-10-24 20:43:31 +03:00
1
],
"end": [
2,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
2016-10-24 20:43:31 +03:00
],
"end": [
3,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
2016-10-24 20:43:31 +03:00
"start": [
4,
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"insert": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
6,
2016-10-24 20:43:31 +03:00
1
],
"end": [
6,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"insert": {
2016-10-24 20:43:31 +03:00
"start": [
7,
1
2016-10-24 20:43:31 +03:00
],
"end": [
7,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
2016-10-24 20:43:31 +03:00
8
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "37e692f54262e2c9680110316b18d2ec87cf615a",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "4c32e5b741f7023c0d5ae53187826f2aec11221f"
2016-10-24 20:43:31 +03:00
}
,{
"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' in the x math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "4c32e5b741f7023c0d5ae53187826f2aec11221f",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "3f89bfb689a36444fae96420c07cafcedf810e0d"
2016-10-24 20:43:31 +03:00
}
,{
"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' in the x math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "3f89bfb689a36444fae96420c07cafcedf810e0d",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "a0934ef018fd5156079cdaef1c10c157cb82bb12"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-math_assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
2016-10-24 20:43:31 +03:00
},
"summary": "Deleted the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
3,
1
2016-10-24 20:43:31 +03:00
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
4,
2016-10-24 20:43:31 +03:00
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
6,
1
2016-10-24 20:43:31 +03:00
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
6,
2016-10-24 20:43:31 +03:00
1
],
"end": [
6,
6
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Added the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "a0934ef018fd5156079cdaef1c10c157cb82bb12",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "8d85de2996ef79b6fbbccc55b572fce6141f0a05"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-math_assignment-delete-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
1,
2016-10-24 20:43:31 +03:00
1
],
"end": [
1,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
2,
2016-10-24 20:43:31 +03:00
1
],
"end": [
2,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
2016-10-24 20:43:31 +03:00
],
"end": [
3,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
4,
1
2016-10-24 20:43:31 +03:00
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
},
{
"span": {
"delete": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "8d85de2996ef79b6fbbccc55b572fce6141f0a05",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "241b39ba005d4bb9f7ead5db8d7ba3c8604fa827"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-math_assignment-delete-rest-test",
"expectedResult": {
"changes": {
"math_assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
7
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x' math assignment"
},
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
"start": [
5,
1
2016-10-24 20:43:31 +03:00
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'x' math assignment"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-24 20:43:31 +03:00
},
"filePaths": [
"math_assignment.rb"
],
"sha1": "241b39ba005d4bb9f7ead5db8d7ba3c8604fa827",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "f528e42a19e2fb87e591e8d0f06b0c0e2fc30b4a"
2016-10-24 20:43:31 +03:00
}]