mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
170 lines
4.4 KiB
JSON
170 lines
4.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-comment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index e69de29..7dd15c1 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -0,0 +1 @@",
|
|
"+# This is a comment"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a07f2fef830bc79ffa2136025c4e29d5c8a0ff1b..d3d916a02cf198fb7c5c5f96df6b1fc4382b76e8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index 7dd15c1..ef7e0e6 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -1 +1,6 @@",
|
|
"+=begin",
|
|
"+This is a multiline",
|
|
"+comment",
|
|
"+=end",
|
|
"+# This is a comment",
|
|
" # This is a comment"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "d3d916a02cf198fb7c5c5f96df6b1fc4382b76e8..f7b133e4dd896586ba44964a6d2bd39a6127add3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index ef7e0e6..b2a9858 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -1,6 +1,3 @@",
|
|
"-=begin",
|
|
"-This is a multiline",
|
|
"-comment",
|
|
"-=end",
|
|
"+# This is a comment",
|
|
" # This is a comment",
|
|
" # This is a comment"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "f7b133e4dd896586ba44964a6d2bd39a6127add3..0a2c056dcc8f63a3911048c316c580cf4252efc7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index b2a9858..ef7e0e6 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -1,3 +1,6 @@",
|
|
"-# This is a comment",
|
|
"+=begin",
|
|
"+This is a multiline",
|
|
"+comment",
|
|
"+=end",
|
|
" # This is a comment",
|
|
" # This is a comment"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "0a2c056dcc8f63a3911048c316c580cf4252efc7..bf6bbf3aa85c998bbea81e8fcd8c51057e9a843c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index ef7e0e6..787b019 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -1,6 +1,5 @@",
|
|
"+# This is a comment",
|
|
" =begin",
|
|
" This is a multiline",
|
|
" comment",
|
|
" =end",
|
|
"-# This is a comment",
|
|
"-# This is a comment"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "bf6bbf3aa85c998bbea81e8fcd8c51057e9a843c..c7b39074cc7505098417f848da30325ca8b7410f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index 787b019..5bbcda3 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -1,4 +1,3 @@",
|
|
"-# This is a comment",
|
|
" =begin",
|
|
" This is a multiline",
|
|
" comment"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "c7b39074cc7505098417f848da30325ca8b7410f..ef695b264a83cfc43b8b08eb4bfcd4f22fa138d1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-comment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/comment.rb b/comment.rb",
|
|
"index 5bbcda3..e69de29 100644",
|
|
"--- a/comment.rb",
|
|
"+++ b/comment.rb",
|
|
"@@ -1,4 +0,0 @@",
|
|
"-=begin",
|
|
"-This is a multiline",
|
|
"-comment",
|
|
"-=end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "ef695b264a83cfc43b8b08eb4bfcd4f22fa138d1..0f08e943de503b5d714186206425966f0517ddec"
|
|
}]
|