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/boolean-operator.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-boolean-operator-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i || j' boolean operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index e69de29b..7280a98c 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -0,0 +1 @@",
"+i || j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "dcb8509973be89c9c4f7239f90bc27b29abe6886..7278cbb3e1324846d217ed8b5d96d30b1d23c9e1"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-boolean-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i && j' boolean operator"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'i || j' boolean operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index 7280a98c..fe3f3064 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1 +1,3 @@",
"+i && j;",
"+i || j;",
" i || j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "7278cbb3e1324846d217ed8b5d96d30b1d23c9e1..dcbb69024b9472b7573c1284b9f2a9ba3c0bf241"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'i && j' boolean operator with the 'i || j' boolean operator"
}
]
},
2016-10-11 18:12:20 +03:00
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index fe3f3064..273c0ee8 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,3 +1,3 @@",
"-i && j;",
"+i || j;",
" i || j;",
" i || j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "dcbb69024b9472b7573c1284b9f2a9ba3c0bf241..1d4a46d71e3418079b81f3b494ead0ddec0770ef"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-boolean-operator-replacement-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'i || j' boolean operator with the 'i && j' boolean operator"
}
]
},
2016-10-11 18:12:20 +03:00
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index 273c0ee8..fe3f3064 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,3 +1,3 @@",
"-i || j;",
"+i && j;",
" i || j;",
" i || j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "1d4a46d71e3418079b81f3b494ead0ddec0770ef..59bf7426522f2e5a40fd2fbd5e9adc595c4a6f26"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i && j' boolean operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'i || j' boolean operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'i && j' boolean operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index fe3f3064..7f4873c1 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,3 +1,2 @@",
"-i && j;",
"-i || j;",
" i || j;",
"+i && j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "59bf7426522f2e5a40fd2fbd5e9adc595c4a6f26..2aff614351987457ce3a0ce900610cf622e1765e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i || j' boolean operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index 7f4873c1..c6921d12 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,2 +1 @@",
"-i || j;",
" i && j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "2aff614351987457ce3a0ce900610cf622e1765e..df4a601cd0eea4d8db63a7f7097753ae9fbd9f4b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-rest-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
7
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'i && j' boolean operator"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index c6921d12..e69de29b 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1 +0,0 @@",
"-i && j;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "df4a601cd0eea4d8db63a7f7097753ae9fbd9f4b..1d234a84ee270c0d6a329fcdcbc065e50bed813b"
2016-10-11 18:12:20 +03:00
}]