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 PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 2
* SENTENCE: [3] When expression has two different forms: with bound value and without it.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 2 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Empty 'when' with missed bound value.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 2
* SENTENCE: [3] When expression has two different forms: with bound value and without it.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 2 -> sentence 3
* NUMBER: 2
* DESCRIPTION: Empty 'when' with missed 'when entries' section.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 2
* SENTENCE: [3] When expression has two different forms: with bound value and without it.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 2 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Empty 'when' with bound value.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (POSITIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 2
* SENTENCE: [3] When expression has two different forms: with bound value and without it.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 2 -> sentence 3
* NUMBER: 2
* DESCRIPTION: Empty 'when' without bound value.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 3
* SENTENCE: [1] When expression without bound value (the form where the expression enclosed in parantheses is absent) evaluates one of the many different expressions based on corresponding conditions present in the same when entry.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 3 -> sentence 1
* NUMBER: 1
* DESCRIPTION: 'When' without bound value and missed control structure body.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 3
* SENTENCE: [1] When expression without bound value (the form where the expression enclosed in parantheses is absent) evaluates one of the many different expressions based on corresponding conditions present in the same when entry.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 3 -> sentence 1
* NUMBER: 2
* DESCRIPTION: 'When' without bound value and missed 'when condition'.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 3
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 3 -> sentence 2
* NUMBER: 1
* DESCRIPTION: 'When' without bound value and with invalid 'else' branch.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 3
* SENTENCE: [2] Each entry consists of a boolean condition (or a special else condition), each of which is checked and evaluated in order of appearance.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 3 -> sentence 2
* NUMBER: 2
* DESCRIPTION: 'When' without bound value and with invalid list of the boolean conditions in 'when entry'.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 6
* SENTENCE: [1] When expression with bound value (the form where the expression enclosed in parantheses is present) are very similar to the form without bound value, but use different syntax for conditions.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 6 -> sentence 1
* NUMBER: 1
* DESCRIPTION: 'When' with bound value and empty control structure body.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 6
* SENTENCE: [1] When expression with bound value (the form where the expression enclosed in parantheses is present) are very similar to the form without bound value, but use different syntax for conditions.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 6 -> sentence 1
* NUMBER: 2
* DESCRIPTION: 'When' with bound value and empty 'when condition'.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 6
* SENTENCE: [1] When expression with bound value (the form where the expression enclosed in parantheses is present) are very similar to the form without bound value, but use different syntax for conditions.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 6 -> sentence 1
* NUMBER: 3
* DESCRIPTION: 'When' with bound value and with invalid list of the conditions in 'when entry'.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 7
* SENTENCE: [1] Type test condition: type checking operator followed by type.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 7 -> sentence 1
* NUMBER: 1
* DESCRIPTION: 'When' with bound value and type test condition, but missed type in 'when condition'.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 7
* SENTENCE: [1] Type test condition: type checking operator followed by type.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 7 -> sentence 1
* NUMBER: 2
* DESCRIPTION: 'When' with bound value and 'when condition' with type checking operator and non-type value.
* UNEXPECTED BEHAVIOUR
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 7
* SENTENCE: [3] Contains test condition: containment operator followed by an expression.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 7 -> sentence 3
* NUMBER: 1
* DESCRIPTION: 'When' with bound value and 'when condition' with range expression, but without contains operator.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 7
* SENTENCE: [5] Any other expression.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 7 -> sentence 5
* NUMBER: 1
* DESCRIPTION: 'When' with bound value and not allowed spread operator in 'when condition'.
*/
@@ -1,9 +1,8 @@
/*
* KOTLIN PSI SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 7
* SENTENCE: [7] The else condition, which works the exact same way as it would in the form without bound expression.
* SPEC VERSION: 0.1-draft
* PLACES: when-expression -> paragraph 7 -> sentence 7
* NUMBER: 1
* DESCRIPTION: 'When' with invalid else condition.
*/