1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00
semantic/test/corpus/diff-summaries/ruby/boolean-operator.json

258 lines
7.5 KiB
JSON
Raw Normal View History

2016-10-24 20:43:31 +03:00
[{
"testCaseDescription": "ruby-boolean-operator-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'a || b' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index e69de29..ba0778d 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -0,0 +1 @@",
"+a || b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "5b279526f66afb77b2588f5173ce44d7cc693f97..53ec9b4615b8872e47ba643814f579eb3d74ef32"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-boolean-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'a && b' boolean operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'a || b' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index ba0778d..2d34b94 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -1 +1,3 @@",
"+a && b",
"+a || b",
" a || b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "53ec9b4615b8872e47ba643814f579eb3d74ef32..02c804c5e37002a6843f3fc329c5db03ad4d51f6"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-boolean-operator-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index 2d34b94..2c61248 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -1,3 +1,3 @@",
"-a && b",
"+a || b",
" a || b",
" a || b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "02c804c5e37002a6843f3fc329c5db03ad4d51f6..144d5b79b707781d8b5d1d56e281bcaa8598ae17"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-boolean-operator-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index 2c61248..2d34b94 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -1,3 +1,3 @@",
"-a || b",
"+a && b",
" a || b",
" a || b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "144d5b79b707781d8b5d1d56e281bcaa8598ae17..000c0198a566086df4d95a1ffd575748b7721552"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-boolean-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"boolean-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'a && b' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index 2d34b94..32a41c9 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -1,3 +1,2 @@",
"-a && b",
"-a || b",
" a || b",
"+a && b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "000c0198a566086df4d95a1ffd575748b7721552..f363216d5459fb0eafeb0168cc3f4af6d11f8cd5"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-boolean-operator-delete-test",
"expectedResult": {
"changes": {
"boolean-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'a || b' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index 32a41c9..b0af58d 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -1,2 +1 @@",
"-a || b",
" a && b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "f363216d5459fb0eafeb0168cc3f4af6d11f8cd5..57a8c0847390f2f78910231321007d7b2c86cc7a"
2016-10-24 20:43:31 +03:00
}
,{
"testCaseDescription": "ruby-boolean-operator-delete-rest-test",
"expectedResult": {
"changes": {
"boolean-operator.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'a && b' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.rb"
],
"patch": [
"diff --git a/boolean-operator.rb b/boolean-operator.rb",
"index b0af58d..e69de29 100644",
"--- a/boolean-operator.rb",
"+++ b/boolean-operator.rb",
"@@ -1 +0,0 @@",
"-a && b"
],
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
"shas": "57a8c0847390f2f78910231321007d7b2c86cc7a..0c8195a0d30149b84b53bc2c98687d24a787f4dd"
2016-10-24 20:43:31 +03:00
}]