1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/ruby/comparision-operator.json
2016-12-06 11:56:42 -08:00

539 lines
17 KiB
JSON

[{
"testCaseDescription": "ruby-comparision-operator-insert-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x < y' binary statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'a > b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index e69de29..582cb83 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -0,0 +1,2 @@",
"+x < y",
"+a > b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "90aa585d4ae985a7c45200caf714149779717558..3f805e1231d263aaee85a8ac7d2ae11fd70c4fc6"
}
,{
"testCaseDescription": "ruby-comparision-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x <= y' binary statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'a >= b' binary statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Added the 'x < y' binary statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the 'a > b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index 582cb83..b96996d 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -1,2 +1,6 @@",
"+x <= y",
"+a >= b",
"+x < y",
"+a > b",
" x < y",
" a > b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "3f805e1231d263aaee85a8ac7d2ae11fd70c4fc6..a6a5370ffbd9e6d6f1c2b0420eabe85b2724e073"
}
,{
"testCaseDescription": "ruby-comparision-operator-delete-insert-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'x <= y' binary statement with the 'x < y' binary statement"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
7
]
},
{
"start": [
2,
1
],
"end": [
2,
6
]
}
]
},
"summary": "Replaced the 'a >= b' binary statement with the 'a > b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index b96996d..3b7fde7 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -1,5 +1,5 @@",
"-x <= y",
"-a >= b",
"+x < y",
"+a > b",
" x < y",
" a > b",
" x < y"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "a6a5370ffbd9e6d6f1c2b0420eabe85b2724e073..eb604c0bcf71199d5c621faae2e35bf19d5d38f5"
}
,{
"testCaseDescription": "ruby-comparision-operator-replacement-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
6
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'x < y' binary statement with the 'x <= y' binary statement"
},
{
"span": {
"replace": [
{
"start": [
2,
1
],
"end": [
2,
6
]
},
{
"start": [
2,
1
],
"end": [
2,
7
]
}
]
},
"summary": "Replaced the 'a > b' binary statement with the 'a >= b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index 3b7fde7..b96996d 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -1,5 +1,5 @@",
"-x < y",
"-a > b",
"+x <= y",
"+a >= b",
" x < y",
" a > b",
" x < y"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "eb604c0bcf71199d5c621faae2e35bf19d5d38f5..85ec514fd02a930895b759fde6c1ae1c168f2305"
}
,{
"testCaseDescription": "ruby-comparision-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x <= y' binary statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'a >= b' binary statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
6
]
}
},
"summary": "Deleted the 'x < y' binary statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the 'a > b' binary statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Added the 'x <= y' binary statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Added the 'a >= b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index b96996d..1cfa010 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -1,6 +1,4 @@",
"-x <= y",
"-a >= b",
"-x < y",
"-a > b",
" x < y",
" a > b",
"+x <= y",
"+a >= b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "85ec514fd02a930895b759fde6c1ae1c168f2305..6c1ce08787e2be33cdff965236183001674249e0"
}
,{
"testCaseDescription": "ruby-comparision-operator-delete-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x < y' binary statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'a > b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index 1cfa010..71b2892 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -1,4 +1,2 @@",
"-x < y",
"-a > b",
" x <= y",
" a >= b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "6c1ce08787e2be33cdff965236183001674249e0..ef13be31a7ebb4b35e3c83e52bc45d3a345d0503"
}
,{
"testCaseDescription": "ruby-comparision-operator-delete-rest-test",
"expectedResult": {
"changes": {
"comparision-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x <= y' binary statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'a >= b' binary statement"
}
]
},
"errors": {}
},
"filePaths": [
"comparision-operator.rb"
],
"patch": [
"diff --git a/comparision-operator.rb b/comparision-operator.rb",
"index 71b2892..e69de29 100644",
"--- a/comparision-operator.rb",
"+++ b/comparision-operator.rb",
"@@ -1,2 +0,0 @@",
"-x <= y",
"-a >= b"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "ef13be31a7ebb4b35e3c83e52bc45d3a345d0503..f7475f092fd81593aab4939187efba0e1a894cc6"
}]