1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/string.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.8 KiB
JSON

[{
"testCaseDescription": "javascript-string-insert-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'A string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "6ba1bec246beb40cd40df1ea4ec93aa3fb7781e8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "07b2f9dc2ed50344b2fa4020fd5588b5ff8dbe31"
}
,{
"testCaseDescription": "javascript-string-replacement-insert-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'A different string with \"double\" quotes' string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'A string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "07b2f9dc2ed50344b2fa4020fd5588b5ff8dbe31",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3289ce841872ee7cd5e733c159865426eee0068c"
}
,{
"testCaseDescription": "javascript-string-delete-insert-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
42
]
},
{
"start": [
1,
1
],
"end": [
1,
32
]
}
]
},
"summary": "Replaced the 'A different string with \"double\" quotes' string with the 'A string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "3289ce841872ee7cd5e733c159865426eee0068c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "22318114bb3837ac62d3fc84c2b7c4ff71795a69"
}
,{
"testCaseDescription": "javascript-string-replacement-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
32
]
},
{
"start": [
1,
1
],
"end": [
1,
42
]
}
]
},
"summary": "Replaced the 'A string with \"double\" quotes' string with the 'A different string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "22318114bb3837ac62d3fc84c2b7c4ff71795a69",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3a931b70ae66d18954b5f893bfb8debcbc987b43"
}
,{
"testCaseDescription": "javascript-string-delete-replacement-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'A different string with \"double\" quotes' string"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted the 'A string with \"double\" quotes' string"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'A different string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "3a931b70ae66d18954b5f893bfb8debcbc987b43",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0d99ed2803b9e9e31790bbbf0a54a8807fbb932e"
}
,{
"testCaseDescription": "javascript-string-delete-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'A string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "0d99ed2803b9e9e31790bbbf0a54a8807fbb932e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "367cccc5389d3d586c3e27c6100233e99d6a2c9a"
}
,{
"testCaseDescription": "javascript-string-delete-rest-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'A different string with \"double\" quotes' string"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
"sha1": "367cccc5389d3d586c3e27c6100233e99d6a2c9a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1fbf78e38d149f4488a791341040013fdb00da3b"
}]