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

287 lines
8.5 KiB
JSON

[{
"testCaseDescription": "javascript-regex-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "a8d82ce2f93ff647407bf419c52871460f9c97eb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ea0eff1793ebe105c8b6442f67ca405bef23c74a"
}
,{
"testCaseDescription": "javascript-regex-replacement-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the '/on[^/]afe/gim' regex"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "ea0eff1793ebe105c8b6442f67ca405bef23c74a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1a0ba895f61e19f205bda942d710326f95a6c835"
}
,{
"testCaseDescription": "javascript-regex-delete-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
15
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the '/on[^/]afe/gim' regex with the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "1a0ba895f61e19f205bda942d710326f95a6c835",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a11c079f420cf6d465f0298c6be827ddf2e3fa0e"
}
,{
"testCaseDescription": "javascript-regex-replacement-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the '/one/g' regex with the '/on[^/]afe/gim' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "a11c079f420cf6d465f0298c6be827ddf2e3fa0e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a41a393f2a4650057daf589114f2a8a7375d3415"
}
,{
"testCaseDescription": "javascript-regex-delete-replacement-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the '/on[^/]afe/gim' regex"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the '/one/g' regex"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the '/on[^/]afe/gim' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "a41a393f2a4650057daf589114f2a8a7375d3415",
"gitDir": "test/corpus/repos/javascript",
"sha2": "02bb6a471daed892a9c6daca059573dade9b887d"
}
,{
"testCaseDescription": "javascript-regex-delete-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the '/one/g' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "02bb6a471daed892a9c6daca059573dade9b887d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "49ffd45612bbe6b997445a609278acb2303940ad"
}
,{
"testCaseDescription": "javascript-regex-delete-rest-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the '/on[^/]afe/gim' regex"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "49ffd45612bbe6b997445a609278acb2303940ad",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1669bea8ff257c1f4188d1b90d7f085ea3d7325e"
}]