mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "7e585fe5bc45b6e3c94804c557acbba015dc80ce..f281d840a74443c67892d2a07a05d8f76f276b59"
|
|
}
|
|
,{
|
|
"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": "f281d840a74443c67892d2a07a05d8f76f276b59..4032b78280d05f255c8e1d347d06627416e2e411"
|
|
}
|
|
,{
|
|
"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": "4032b78280d05f255c8e1d347d06627416e2e411..ed46dd49a972373360813d55a665236aeecfa11c"
|
|
}
|
|
,{
|
|
"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": "ed46dd49a972373360813d55a665236aeecfa11c..3b37bd1084b6997b043f66a953e83821ff206c55"
|
|
}
|
|
,{
|
|
"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": "3b37bd1084b6997b043f66a953e83821ff206c55..110bf576e20a6f45435f69a4590b17f2d08d8310"
|
|
}
|
|
,{
|
|
"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": "110bf576e20a6f45435f69a4590b17f2d08d8310..a91d1899261f954a96b0181d9ec6a8bd741482d0"
|
|
}
|
|
,{
|
|
"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": "a91d1899261f954a96b0181d9ec6a8bd741482d0..c544da454650762dab0b3bf16b363019434a42b5"
|
|
}]
|