mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
348 lines
10 KiB
JSON
348 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-boolean-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a || b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "1ff4601a166d78743c85dba523065e31a5264033..b75e9f7218b20c7964eb31ae31ae5e6b5f9093a8"
|
|
}
|
|
,{
|
|
"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' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a || b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "b75e9f7218b20c7964eb31ae31ae5e6b5f9093a8..35d3383ded9a4ae609352ffc16e048d5331d1d5d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a && b' binary statement with the 'a || b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "35d3383ded9a4ae609352ffc16e048d5331d1d5d..e3532e0fbf45237d7287d0fc020b00479ebbe477"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a || b' binary statement with the 'a && b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "e3532e0fbf45237d7287d0fc020b00479ebbe477..a8db8b305a4a179c5bc4547f89c04f557671d934"
|
|
}
|
|
,{
|
|
"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' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a || b' binary statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a && b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a8db8b305a4a179c5bc4547f89c04f557671d934..abf6b461c58ff7d013954ce3e992f52cc953ab48"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-boolean-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a || b' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "abf6b461c58ff7d013954ce3e992f52cc953ab48..4ffa7df22283c90aed2debfa5390513761d0939b"
|
|
}
|
|
,{
|
|
"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' binary statement"
|
|
}
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "4ffa7df22283c90aed2debfa5390513761d0939b..88429f0be2cb1dafc9c8b1339ae88968f72b0acd"
|
|
}]
|