[Spec tests] fix test parser exceptions handler

This commit is contained in:
anastasiia.spaseeva
2019-12-12 11:20:04 +03:00
parent fdef51e8b7
commit 8187405dbd
17 changed files with 63 additions and 51 deletions
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 2
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
fun box(): String {
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 3
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
fun box(): String {
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 4
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 5
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 6
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
@@ -7,7 +7,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 7
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
import java.util.*
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 8
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
fun box(): String {
@@ -7,7 +7,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, built-in-types-and-their-semantics, kotlin.nothing-1 -> paragraph 1 -> sentence 1
* NUMBER: 9
* DESCRIPTION:
* DESCRIPTION: check kotlin.Nothing type
*/
fun box(): String {
@@ -5,25 +5,25 @@
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
@@ -35,25 +35,25 @@
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": "",
"description": "check kotlin.Nothing type",
"unexpectedBehaviour": false
},
{
@@ -6,7 +6,7 @@
* SPEC VERSION: 0.1-213
* PLACE: expressions, cast-expression -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: check of the cast operators as or as?
* DESCRIPTION: check of the cast operators as or as?
*/
fun box(): String {
@@ -5,7 +5,7 @@
{
"specVersion": "0.1-213",
"casesNumber": 0,
"description": " check of the cast operators as or as?",
"description": "check of the cast operators as or as?",
"unexpectedBehaviour": false
}
]
@@ -9,7 +9,6 @@
* PLACE: control--and-data-flow-analysis, control-flow-graph, expressions-1, conditional-expressions -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: check if-expressions must have both branches.
* HELPERS:
*/
// TESTCASE NUMBER: 1
@@ -5,7 +5,7 @@
{
"specVersion": "0.1-213",
"casesNumber": 2,
"description": "* HELPERS: checkType",
"description": "check any if-statement in kotlin may be trivially turned into such an expression by replacing the missing branch with a kotlin.Unit object expression.",
"unexpectedBehaviour": false
}
],
@@ -13,7 +13,7 @@
{
"specVersion": "0.1-213",
"casesNumber": 2,
"description": "* HELPERS:",
"description": "check if-expressions must have both branches.",
"unexpectedBehaviour": false
}
]
@@ -23,7 +23,7 @@
{
"specVersion": "0.1-213",
"casesNumber": 2,
"description": "* HELPERS: checkType, functions",
"description": "check any if-statement in kotlin may be trivially turned into such an expression by replacing the missing branch with a kotlin.Unit object expression.",
"unexpectedBehaviour": false
}
],
@@ -31,7 +31,7 @@
{
"specVersion": "0.1-213",
"casesNumber": 3,
"description": "* HELPERS: checkType, functions",
"description": "check if-expressions must have both branches.",
"unexpectedBehaviour": false
},
{