mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
348 lines
9.8 KiB
JSON
348 lines
9.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-number-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index e69de29..398050c 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "aa6143f1a8ae9ca9b1ee3577121858208df3cce0..3838259f90e9c1e4e6ce33e99b8d9a0fbcd9e616"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '102'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 398050c..16da476 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+102",
|
|
"+101",
|
|
" 101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "3838259f90e9c1e4e6ce33e99b8d9a0fbcd9e616..6e18d86d44c74acdcea5dc6ea75a8169152e0dd2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '102' with '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 16da476..252b3e8 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-102",
|
|
"+101",
|
|
" 101",
|
|
" 101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6e18d86d44c74acdcea5dc6ea75a8169152e0dd2..b40e32fd74e885cdf5d9617ef37150ec3d414177"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '101' with '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 252b3e8..16da476 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-101",
|
|
"+102",
|
|
" 101",
|
|
" 101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b40e32fd74e885cdf5d9617ef37150ec3d414177..85a591e8bebf6a7b8b9adfdebebfb4b8776ab809"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '102'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '101'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 16da476..bb77dfb 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-102",
|
|
"-101",
|
|
" 101",
|
|
"+102"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "85a591e8bebf6a7b8b9adfdebebfb4b8776ab809..3e5ee4738617f0b4536cee654c79c7c71e8d7e7b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index bb77dfb..257e563 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-101",
|
|
" 102"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "3e5ee4738617f0b4536cee654c79c7c71e8d7e7b..15bf3e42bb84c62933b0d29e0b675bca24cc66b2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 257e563..e69de29 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-102"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "15bf3e42bb84c62933b0d29e0b675bca24cc66b2..2e348ee88f62c0857d6f6ce2ab3ee0d46f12afeb"
|
|
}]
|