[Spec tests] Change metadata structure of implementation and spec tests

This commit is contained in:
anastasiia.spaseeva
2020-04-01 19:14:46 +03:00
parent 80cd26c9df
commit d32aca87d1
925 changed files with 2330 additions and 1657 deletions
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-218
* PLACE:expressions, try-expression -> paragraph 1 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK:expressions, try-expression -> paragraph 1 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 3
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 3
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body and continue with zero ore more catch blocks
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 3
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 3
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body and continue with zero ore more catch blocks
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 4
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 4
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body, catch blocks and finally block
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 4
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 4
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body, catch blocks and finally block
*/
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 5
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 5
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: A valid try-expression must have at least one catch or finally block.
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE:expressions, try-expression -> paragraph 1 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK:expressions, try-expression -> paragraph 1 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* expressions, try-expression -> paragraph 1 -> sentence 5
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE:expressions, try-expression -> paragraph 1 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK:expressions, try-expression -> paragraph 1 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* expressions, try-expression -> paragraph 1 -> sentence 5
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 3
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 3
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body and continue with zero ore more catch blocks
*/
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 3
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 3
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: catch is a soft keyword
*/
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 4
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 4
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: try-expression has to start with a try body, catch blocks and finally block
*/
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 1 -> sentence 4
* RELEVANT PLACES: expressions, try-expression -> paragraph 1 -> sentence 2
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 4
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: finally is a soft keyword
*/
@@ -5,8 +5,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 2 -> sentence 2
* RELEVANT PLACES: expressions, try-expression -> paragraph 2 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 2 -> sentence 2
* PRIMARY LINKS: expressions, try-expression -> paragraph 2 -> sentence 1
* NUMBER: 1
* DESCRIPTION: catch block is evaluated immediately after the exception is thrown and the exception itself is passed inside the catch block as the corresponding parameter.
*/
@@ -5,8 +5,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 2 -> sentence 2
* RELEVANT PLACES: expressions, try-expression -> paragraph 2 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 2 -> sentence 2
* PRIMARY LINKS: expressions, try-expression -> paragraph 2 -> sentence 1
* NUMBER: 1
* DESCRIPTION: catch block is evaluated immediately after the exception is thrown and the exception itself is passed inside the catch block as the corresponding parameter.
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 5 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 4 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 5 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 4 -> sentence 1
* NUMBER: 1
* DESCRIPTION: If no exception is thrown during the evaluation of the try body, no catch blocks are executed, the finally block is evaluated after the try body, and the program execution continues as normal.
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 5 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 4 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 5 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 4 -> sentence 1
* NUMBER: 1
* DESCRIPTION: If no exception is thrown during the evaluation of the try body, no catch blocks are executed, the finally block is evaluated after the try body, and the program execution continues as normal.
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 5 -> sentence 2
* RELEVANT PLACES: expressions, try-expression -> paragraph 4 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 5 -> sentence 2
* PRIMARY LINKS: expressions, try-expression -> paragraph 4 -> sentence 1
* NUMBER: 1
* DESCRIPTION: If an exception was thrown, but no catch block matched its type, the finally block is evaluated before propagating the exception up the call stack.
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-218
* PLACE: expressions, try-expression -> paragraph 5 -> sentence 2
* RELEVANT PLACES: expressions, try-expression -> paragraph 4 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 5 -> sentence 2
* PRIMARY LINKS: expressions, try-expression -> paragraph 4 -> sentence 1
* NUMBER: 1
* DESCRIPTION: If an exception was thrown, but no catch block matched its type, the finally block is evaluated before propagating the exception up the call stack.
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-296
* PLACE: expressions, try-expression -> paragraph 8 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 9 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 8 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 9 -> sentence 1
* NUMBER: 1
* DESCRIPTION: The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks
*/
@@ -6,8 +6,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-296
* PLACE: expressions, try-expression -> paragraph 8 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 9 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 8 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 9 -> sentence 1
* NUMBER: 1
* DESCRIPTION: The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks
*/
@@ -7,8 +7,8 @@
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-296
* PLACE: expressions, try-expression -> paragraph 8 -> sentence 1
* RELEVANT PLACES: expressions, try-expression -> paragraph 9 -> sentence 1
* MAIN LINK: expressions, try-expression -> paragraph 8 -> sentence 1
* PRIMARY LINKS: expressions, try-expression -> paragraph 9 -> sentence 1
* NUMBER: 1
* DESCRIPTION: The type of the try-expression is the least upper bound of the types of the last expressions of the try body and the last expressions of all the catch blocks
* HELPERS: checkType