Support several spec places to which tests are linked and require specify spec version for each test

This commit is contained in:
victor.petukhov
2018-12-28 15:19:20 +03:00
parent cb5f497cbe
commit acd6d354dc
341 changed files with 736 additions and 1039 deletions
@@ -1,9 +1,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [1] It has an else entry;
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Check when exhaustive via else entry (when without bound value).
*/
@@ -3,9 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [1] It has an else entry;
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Check when exhaustive via else entry (when with bound value).
*/
@@ -4,9 +4,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [1] It has an else entry;
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 1
* NUMBER: 3
* DESCRIPTION: Check when exhaustive via else entry (when with bound value, redundant else).
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [3] The bound expression is of type kotlin.Boolean and the conditions contain both:
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Check when exhaustive via boolean bound value and evaluating to value true and false.
*/
@@ -4,9 +4,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [6] The bound valueession is of a sealed class type and all its possible subtypes are covered using type test conditions of this valueession;
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 6
* NUMBER: 1
* DESCRIPTION: Check when exhaustive when possible subtypes of the sealed class are covered.
*/
@@ -3,9 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [7] The bound expression is of an Enum classes type and all enumerated values are checked for equality using constant conditions;
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 7
* NUMBER: 1
* DESCRIPTION: Check when exhaustive when all enumerated values are checked.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 8
* NUMBER: 1
* DESCRIPTION: Check when exhaustive when boolean values are checked and contains a null check.
*/
@@ -3,9 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [8] The bound expression is of a nullable type and one of the cases above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 8
* NUMBER: 2
* DESCRIPTION: Check when exhaustive when enumerated values are checked and contains a null check.
*/
@@ -3,9 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a condition containing literal null.
* SPEC VERSION: 0.1-draft
* PLACE: when-expression -> paragraph 11 -> sentence 8
* NUMBER: 3
* DESCRIPTION: Check when exhaustive when possible subtypes of the sealed class are covered and contains a null check.
*/