Relinking spec tests

This commit is contained in:
victor.petukhov
2019-08-12 12:06:17 +03:00
parent 8465d690f1
commit d8e5b068d5
590 changed files with 3720 additions and 10085 deletions
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Checking of type for Boolean values
@@ -2,11 +2,11 @@ package
public fun case_1(): kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Checking of type for Boolean values
@@ -2,11 +2,11 @@ package
public fun case_1(): kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, boolean-literals -> paragraph 1 -> sentence 3
* NUMBER: 2
* DESCRIPTION: Checking of subtype for Boolean values
@@ -2,11 +2,11 @@ package
public fun case_1(): kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -0,0 +1,30 @@
{
"1": {
"neg": {
"3": [
{
"specVersion": "0.1-100",
"casesNumber": 1,
"description": "Checking of type for Boolean values",
"unexpectedBehaviour": false
}
]
},
"pos": {
"3": [
{
"specVersion": "0.1-100",
"casesNumber": 1,
"description": "Checking of type for Boolean values",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 1,
"description": "Checking of subtype for Boolean values",
"unexpectedBehaviour": false
}
]
}
}
}
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Binary integer literals with the prefix only.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Binary integer literals with an underscore after the prefix.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Binary integer literals with an underscore in the first position (it's considered as identifiers).
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, binary-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Binary integer literals with an underscore in the last position.
@@ -0,0 +1,34 @@
{
"1": {
"neg": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 4,
"description": "Binary integer literals with an underscore after the prefix.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 7,
"description": "Binary integer literals with an underscore in the last position.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 11,
"description": "Binary integer literals with an underscore in the first position (it\u0027s considered as identifiers).",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 2,
"description": "Binary integer literals with the prefix only.",
"unexpectedBehaviour": false
}
]
}
}
}
@@ -1,23 +1,32 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, decimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Integer literals with an underscore in the last position.
* DESCRIPTION: Integer literals with an underscore in the first position (it's considered as identifiers).
*/
// TESTCASE NUMBER: 1
val value_1 = <!ILLEGAL_UNDERSCORE!>1_<!>
val value_1 = <!UNRESOLVED_REFERENCE!>_5678_90<!>
// TESTCASE NUMBER: 2
val value_2 = <!ILLEGAL_UNDERSCORE!>1_00000000000000000_<!>
val value_2 = <!UNRESOLVED_REFERENCE!>_2_3_4_5_6_7_8_9_<!>
// TESTCASE NUMBER: 3
val value_3 = <!ILLEGAL_UNDERSCORE!>1_____________<!>
val value_3 = <!UNRESOLVED_REFERENCE!>_____________0000<!>
// TESTCASE NUMBER: 4
val value_4 = <!ILLEGAL_UNDERSCORE!>9____________0_<!>
val value_4 = <!UNRESOLVED_REFERENCE!>_______________________________________________________________________________________________________________________________________________________0<!>
// TESTCASE NUMBER: 5
val value_5 = <!ILLEGAL_UNDERSCORE!>1_______________________________________________________________________________________________________________________________________________________<!>
val value_5 = <!UNRESOLVED_REFERENCE!>____________________________________________________<!>
// TESTCASE NUMBER: 6
val value_6 = <!UNRESOLVED_REFERENCE!>_<!>
// TESTCASE NUMBER: 7
val value_7 = <!UNRESOLVED_REFERENCE!>_0_<!>
// TESTCASE NUMBER: 8
val value_8 = <!UNRESOLVED_REFERENCE!>_9_<!>
@@ -1,7 +1,10 @@
package
public val value_1: kotlin.Int = 1
public val value_2: kotlin.Long = 100000000000000000.toLong()
public val value_3: kotlin.Int = 1
public val value_4: kotlin.Int = 90
public val value_5: kotlin.Int = 1
public val value_1: [ERROR : Type for _5678_90]
public val value_2: [ERROR : Type for _2_3_4_5_6_7_8_9_]
public val value_3: [ERROR : Type for _____________0000]
public val value_4: [ERROR : Type for _______________________________________________________________________________________________________________________________________________________0]
public val value_5: [ERROR : Type for ____________________________________________________]
public val value_6: [ERROR : Type for _]
public val value_7: [ERROR : Type for _0_]
public val value_8: [ERROR : Type for _9_]
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, decimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Integer literals with an underscore in the first position (it's considered as identifiers).
@@ -0,0 +1,32 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, decimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Integer literals with an underscore in the first position (it's considered as identifiers).
*/
// TESTCASE NUMBER: 1
val value_1 = <!UNRESOLVED_REFERENCE!>_5678_90<!>
// TESTCASE NUMBER: 2
val value_2 = <!UNRESOLVED_REFERENCE!>_2_3_4_5_6_7_8_9_<!>
// TESTCASE NUMBER: 3
val value_3 = <!UNRESOLVED_REFERENCE!>_____________0000<!>
// TESTCASE NUMBER: 4
val value_4 = <!UNRESOLVED_REFERENCE!>_______________________________________________________________________________________________________________________________________________________0<!>
// TESTCASE NUMBER: 5
val value_5 = <!UNRESOLVED_REFERENCE!>____________________________________________________<!>
// TESTCASE NUMBER: 6
val value_6 = <!UNRESOLVED_REFERENCE!>_<!>
// TESTCASE NUMBER: 7
val value_7 = <!UNRESOLVED_REFERENCE!>_0_<!>
// TESTCASE NUMBER: 8
val value_8 = <!UNRESOLVED_REFERENCE!>_9_<!>
@@ -0,0 +1,10 @@
package
public val value_1: [ERROR : Type for _5678_90]
public val value_2: [ERROR : Type for _2_3_4_5_6_7_8_9_]
public val value_3: [ERROR : Type for _____________0000]
public val value_4: [ERROR : Type for _______________________________________________________________________________________________________________________________________________________0]
public val value_5: [ERROR : Type for ____________________________________________________]
public val value_6: [ERROR : Type for _]
public val value_7: [ERROR : Type for _0_]
public val value_8: [ERROR : Type for _9_]
@@ -0,0 +1,26 @@
{
"1": {
"neg": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 8,
"description": "Integer literals with an underscore in the first position (it\u0027s considered as identifiers).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 8,
"description": "Integer literals with an underscore in the first position (it\u0027s considered as identifiers).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 8,
"description": "Integer literals with an underscore in the first position (it\u0027s considered as identifiers).",
"unexpectedBehaviour": false
}
]
}
}
}
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Hexadecimal integer literals with the prefix only.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Hexadecimal integer literals with an underscore after the prefix.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Hexadecimal integer literals with an underscore in the first position (it's considered as identifiers).
@@ -1,29 +1,41 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Hexadecimal integer literals with an underscore in the last position.
* DESCRIPTION: Hexadecimal integer literals with an underscore in the first position (it's considered as identifiers).
*/
// TESTCASE NUMBER: 1
val value_1 = <!ILLEGAL_UNDERSCORE!>0x3_4_5_6_7_8_____<!>
val value_1 = <!UNRESOLVED_REFERENCE!>_____0x3_4_5_6_7_8<!>
// TESTCASE NUMBER: 2
val value_2 = <!ILLEGAL_UNDERSCORE!>0X4_______5_______6_______7_<!>
val value_2 = <!UNRESOLVED_REFERENCE!>_0X4_______5_______6_______7<!>
// TESTCASE NUMBER: 3
val value_3 = <!ILLEGAL_UNDERSCORE!>0X000000000_<!>
val value_3 = <!UNRESOLVED_REFERENCE!>_0_0X4_3_4_5_6_7_8_9<!>
// TESTCASE NUMBER: 4
val value_4 = <!UNRESOLVED_REFERENCE!>_0X000000000<!>
// TESTCASE NUMBER: 5
val value_5 = <!ILLEGAL_UNDERSCORE, INT_LITERAL_OUT_OF_RANGE!>0x_<!>
val value_5 = <!UNRESOLVED_REFERENCE!>_0000000000x<!>
// TESTCASE NUMBER: 6
val value_6 = <!ILLEGAL_UNDERSCORE, INT_LITERAL_OUT_OF_RANGE!>0X______________<!>
val value_6 = <!UNRESOLVED_REFERENCE!>_0_9x<!>
// TESTCASE NUMBER: 7
val value_7 = <!ILLEGAL_UNDERSCORE!>0X0_<!>
val value_7 = <!UNRESOLVED_REFERENCE!>____________0x<!>
// TESTCASE NUMBER: 8
val value_8 = <!ILLEGAL_UNDERSCORE!>0X10_<!>
val value_8 = <!UNRESOLVED_REFERENCE!>_0_x_0<!>
// TESTCASE NUMBER: 9
val value_9 = <!UNRESOLVED_REFERENCE!>_x_0<!>
// TESTCASE NUMBER: 10
val value_10 = <!UNRESOLVED_REFERENCE!>_x<!>
// TESTCASE NUMBER: 11
val value_11 = <!UNRESOLVED_REFERENCE!>_x_<!>
@@ -1,9 +1,13 @@
package
public val value_1: kotlin.Int = 3430008
public val value_2: kotlin.Int = 17767
public val value_3: kotlin.Int = 0
public val value_5: kotlin.Int
public val value_6: kotlin.Int
public val value_7: kotlin.Int = 0
public val value_8: kotlin.Int = 16
public val value_1: [ERROR : Type for _____0x3_4_5_6_7_8]
public val value_10: [ERROR : Type for _x]
public val value_11: [ERROR : Type for _x_]
public val value_2: [ERROR : Type for _0X4_______5_______6_______7]
public val value_3: [ERROR : Type for _0_0X4_3_4_5_6_7_8_9]
public val value_4: [ERROR : Type for _0X000000000]
public val value_5: [ERROR : Type for _0000000000x]
public val value_6: [ERROR : Type for _0_9x]
public val value_7: [ERROR : Type for ____________0x]
public val value_8: [ERROR : Type for _0_x_0]
public val value_9: [ERROR : Type for _x_0]
@@ -0,0 +1,29 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, integer-literals, hexadecimal-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 4
* DESCRIPTION: Hexadecimal integer literals with an underscore in the last position.
*/
// TESTCASE NUMBER: 1
val value_1 = <!ILLEGAL_UNDERSCORE!>0x3_4_5_6_7_8_____<!>
// TESTCASE NUMBER: 2
val value_2 = <!ILLEGAL_UNDERSCORE!>0X4_______5_______6_______7_<!>
// TESTCASE NUMBER: 3
val value_3 = <!ILLEGAL_UNDERSCORE!>0X000000000_<!>
// TESTCASE NUMBER: 5
val value_5 = <!ILLEGAL_UNDERSCORE, INT_LITERAL_OUT_OF_RANGE!>0x_<!>
// TESTCASE NUMBER: 6
val value_6 = <!ILLEGAL_UNDERSCORE, INT_LITERAL_OUT_OF_RANGE!>0X______________<!>
// TESTCASE NUMBER: 7
val value_7 = <!ILLEGAL_UNDERSCORE!>0X0_<!>
// TESTCASE NUMBER: 8
val value_8 = <!ILLEGAL_UNDERSCORE!>0X10_<!>
@@ -0,0 +1,9 @@
package
public val value_1: kotlin.Int = 3430008
public val value_2: kotlin.Int = 17767
public val value_3: kotlin.Int = 0
public val value_5: kotlin.Int
public val value_6: kotlin.Int
public val value_7: kotlin.Int = 0
public val value_8: kotlin.Int = 16
@@ -0,0 +1,40 @@
{
"1": {
"neg": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 4,
"description": "Hexadecimal integer literals with an underscore after the prefix.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 7,
"description": "Hexadecimal integer literals with an underscore in the last position.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 11,
"description": "Hexadecimal integer literals with an underscore in the first position (it\u0027s considered as identifiers).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 11,
"description": "Hexadecimal integer literals with an underscore in the first position (it\u0027s considered as identifiers).",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 2,
"description": "Hexadecimal integer literals with the prefix only.",
"unexpectedBehaviour": false
}
]
}
}
}
@@ -1,13 +0,0 @@
/*
* This file is generated by {@link org.jetbrains.kotlin.spec.tasks.generateTests}. DO NOT MODIFY MANUALLY.
* This file is used in the HTML version of the Kotlin Specification (https://kotlin.github.io/kotlin-spec) to show tests coverage for sentences.
*
* Content format:
*
* {paragraphNumber}
* {testType: neg|pos}: {sentenceNumber}-{numberOfTests|testPathToAnotherSection}, ...
*/
1
neg: 2-5, 1-3
pos: 2-5
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Real literals separeted by comments.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 1 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Real literals suffixed by f/F (float suffix) separeted by comments.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Simple real literals with a different whole-number part and fraction part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 1 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals with a many digits in a whole-number part and a fraction part (including conforms).
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 1 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Simple real literals suffixed by f/F (the float suffix) with a different whole-number part and fraction part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 1 -> sentence 3
* NUMBER: 2
* DESCRIPTION: Real literals suffixed by f/F (the float suffix) with a many digits in a whole-number part and a fraction part (including conforms).
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 2 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Real literals without digits after an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 2 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals with a not allowed exponent mark at the beginning.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 2 -> sentence 1
* NUMBER: 3
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with a not allowed exponent mark at the beginning.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 2 -> sentence 1
* NUMBER: 4
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with an exponent mark without digits after it.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 2 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Simple real literals with an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 2 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Real literals with omitted a whole-number part and an exponent mark without digits after it.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals with omitted a whole-number part, suffixed by f/F (float suffix) followed by an exponent mark without digits.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Real literals with omitted a fraction part and an exponent mark without digits after it.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Simple real literals with omitted a whole-number part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals with omitted a whole-number part and an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 3
* DESCRIPTION: Real literals separeted by comments with omitted a whole-number part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 4
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with omitted a whole-number part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 1
* NUMBER: 5
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with omitted a whole-number part and an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Simple real literals with omitted a fraction part, suffixed by f/F (float suffix).
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Real literals with omitted a fraction part and an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 3 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Real literals with omitted a fraction part and an exponent mark, suffixed by f/F (float suffix).
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Real literals without digits after an exponent mark and with undescores in the different pisitions.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals with underscores at the end.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Real literals with underscores before an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Real literals with underscores after an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Real literals with underscores around an exponent mark.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Real literals with underscores in a whole-number part and a fraction part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with underscores in a whole-number part and a fraction part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 3
* DESCRIPTION: Real literals suffixed by f/F (float suffix) with an exponent mark and underscores in a whole-number part, a fraction part and an exponent part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 4
* DESCRIPTION: Real literals with an omitted whole-number part and underscores in a whole-number part, a fraction part and an exponent part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 4 -> sentence 1
* NUMBER: 5
* DESCRIPTION: Real literals with an omitted fraction part and underscores in a whole-number part, a fraction part and an exponent part.
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 5 -> sentence 1
* NUMBER: 1
* DESCRIPTION: A type checking of a simple real literal (with/without underscores).
@@ -15,11 +15,11 @@ public val value_7: kotlin.Unit
public val value_8: kotlin.Unit
public val value_9: kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 5 -> sentence 1
* NUMBER: 2
* DESCRIPTION: A type checking of a real literal with an exponent mark.
@@ -40,11 +40,11 @@ public val value_7: kotlin.Unit
public val value_8: kotlin.Unit
public val value_9: kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 5 -> sentence 1
* NUMBER: 3
* DESCRIPTION: A type checking of a real literal with omitted a whole-number part.
@@ -30,11 +30,11 @@ public val value_7: kotlin.Unit
public val value_8: kotlin.Unit
public val value_9: kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 5 -> sentence 1
* NUMBER: 4
* DESCRIPTION: A type checking of a real literal with omitted a whole-number part and an exponent mark.
@@ -31,11 +31,11 @@ public val value_7: kotlin.Unit
public val value_8: kotlin.Unit
public val value_9: kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -1,7 +1,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, real-literals -> paragraph 5 -> sentence 1
* NUMBER: 5
* DESCRIPTION: A type checking of a real literal with omitted a fraction part and an exponent mark.
@@ -24,11 +24,11 @@ public val value_7: kotlin.Unit
public val value_8: kotlin.Unit
public val value_9: kotlin.Unit
public fun </*0*/ T> checkSubtype(/*0*/ t: T): T
public fun </*0*/ E> Inv<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: Inv<T>.() -> kotlin.Unit): kotlin.Unit
public fun </*0*/ E> CheckType<E>.check(): kotlin.Unit
public infix fun </*0*/ T> T.checkType(/*0*/ f: CheckType<T>.() -> kotlin.Unit): kotlin.Unit
public final class Inv</*0*/ T> {
public constructor Inv</*0*/ T>()
public final class CheckType</*0*/ T> {
public constructor CheckType</*0*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
@@ -0,0 +1,286 @@
{
"1": {
"neg": {
"3": [
{
"specVersion": "0.1-100",
"casesNumber": 6,
"description": "Real literals suffixed by f/F (float suffix) separeted by comments.",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 6,
"description": "Real literals separeted by comments.",
"unexpectedBehaviour": false
}
]
},
"pos": {
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 12,
"description": "Real literals with a many digits in a whole-number part and a fraction part (including conforms).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 35,
"description": "Simple real literals with a different whole-number part and fraction part.",
"unexpectedBehaviour": false
}
],
"3": [
{
"specVersion": "0.1-100",
"casesNumber": 35,
"description": "Simple real literals suffixed by f/F (the float suffix) with a different whole-number part and fraction part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 12,
"description": "Real literals suffixed by f/F (the float suffix) with a many digits in a whole-number part and a fraction part (including conforms).",
"unexpectedBehaviour": false
}
]
}
},
"4": {
"neg": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 14,
"description": "Real literals with underscores before an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 26,
"description": "Real literals with underscores around an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 29,
"description": "Real literals with underscores after an exponent mark.",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 15,
"description": "Real literals with underscores at the end.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 15,
"description": "Real literals without digits after an exponent mark and with undescores in the different pisitions.",
"unexpectedBehaviour": false
}
]
},
"pos": {
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 27,
"description": "Real literals suffixed by f/F (float suffix) with underscores in a whole-number part and a fraction part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 27,
"description": "Real literals suffixed by f/F (float suffix) with an exponent mark and underscores in a whole-number part, a fraction part and an exponent part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 29,
"description": "Real literals with an omitted whole-number part and underscores in a whole-number part, a fraction part and an exponent part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 31,
"description": "Real literals with an omitted fraction part and underscores in a whole-number part, a fraction part and an exponent part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 27,
"description": "Real literals with underscores in a whole-number part and a fraction part.",
"unexpectedBehaviour": false
}
]
}
},
"3": {
"neg": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 9,
"description": "Real literals with omitted a fraction part and an exponent mark without digits after it.",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 17,
"description": "Real literals with omitted a whole-number part, suffixed by f/F (float suffix) followed by an exponent mark without digits.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 17,
"description": "Real literals with omitted a whole-number part and an exponent mark without digits after it.",
"unexpectedBehaviour": false
}
]
},
"pos": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 25,
"description": "Simple real literals with omitted a fraction part, suffixed by f/F (float suffix).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 23,
"description": "Real literals with omitted a fraction part and an exponent mark, suffixed by f/F (float suffix).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 23,
"description": "Real literals with omitted a fraction part and an exponent mark.",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 30,
"description": "Real literals with omitted a whole-number part and an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 6,
"description": "Real literals separeted by comments with omitted a whole-number part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 23,
"description": "Real literals suffixed by f/F (float suffix) with omitted a whole-number part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 26,
"description": "Real literals suffixed by f/F (float suffix) with omitted a whole-number part and an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 29,
"description": "Simple real literals with omitted a whole-number part.",
"unexpectedBehaviour": false
}
]
}
},
"2": {
"neg": {
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 13,
"description": "Real literals with a not allowed exponent mark at the beginning.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 13,
"description": "Real literals suffixed by f/F (float suffix) with a not allowed exponent mark at the beginning.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 17,
"description": "Real literals suffixed by f/F (float suffix) with an exponent mark without digits after it.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 17,
"description": "Real literals without digits after an exponent mark.",
"unexpectedBehaviour": false
}
]
},
"pos": {
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 26,
"description": "Real literals suffixed by f/F (float suffix) with an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 39,
"description": "Simple real literals with an exponent mark.",
"unexpectedBehaviour": false
}
]
}
},
"5": {
"pos": {
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 39,
"description": "A type checking of a real literal with an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 29,
"description": "A type checking of a real literal with omitted a whole-number part.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 30,
"description": "A type checking of a real literal with omitted a whole-number part and an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 23,
"description": "A type checking of a real literal with omitted a fraction part and an exponent mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 14,
"description": "A type checking of a simple real literal (with/without underscores).",
"unexpectedBehaviour": false
}
]
}
}
}
@@ -9,8 +9,8 @@
*/
1
pos: 1-2, 1-type-system/introduction/7/pos/1.1.kt, 3-2
neg: 3-1, 1-1
pos: 1-2, 3-2
4
neg: 2-3, 1-2
pos: 1-5
@@ -1,8 +1,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 1
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Binary and hexadecimal integer literals with a long literal mark only.
*/
@@ -1,8 +1,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 1
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Various integer literals with a not allowed underscore before the long literal mark.
*/
@@ -1,8 +1,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 1
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 1
* NUMBER: 3
* DESCRIPTION: Various integer literals with not allowed long literal mark in lower case.
*/
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Various integer literals with not allowed long literal mark in lower case (type checking).
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Type checking (comparison with invalid types) of various integer literals with long literal mark.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Type checking (comparison with invalid types) of various integer literals.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 4
* DESCRIPTION: Type checking (comparison with invalid types) of too a big integers.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 5
* DESCRIPTION: Check of integer type selection depends on the context (incopatible types).
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 1
* DESCRIPTION: Type checking of various integer literals with long literal mark.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 2
* DESCRIPTION: Type checking of decimal integer literals.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 3
* DESCRIPTION: Type checking of hexadecimal integer literals.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 4
* DESCRIPTION: Type checking of binary integer literals.
* HELPERS: checkType
@@ -3,8 +3,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, constant-literals, integer-literals, long-integer-literals -> paragraph 1 -> sentence 2
* SPEC VERSION: 0.1-100
* PLACE: expressions, constant-literals, the-types-for-integer-literals -> paragraph 1 -> sentence 2
* NUMBER: 5
* DESCRIPTION: Check of integer type selection depends on the context.
* HELPERS: checkType
@@ -0,0 +1,92 @@
{
"1": {
"neg": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 1,
"description": "Various integer literals with not allowed long literal mark in lower case (type checking).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 4,
"description": "Check of integer type selection depends on the context (incopatible types).",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 2,
"description": "Type checking (comparison with invalid types) of too a big integers.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 6,
"description": "Type checking (comparison with invalid types) of various integer literals.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 1,
"description": "Type checking (comparison with invalid types) of various integer literals with long literal mark.",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-100",
"casesNumber": 4,
"description": "Various integer literals with a not allowed underscore before the long literal mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 4,
"description": "Various integer literals with not allowed long literal mark in lower case.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 8,
"description": "Binary and hexadecimal integer literals with a long literal mark only.",
"unexpectedBehaviour": false
}
]
},
"pos": {
"2": [
{
"specVersion": "0.1-100",
"casesNumber": 2,
"description": "Type checking of various integer literals with long literal mark.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 4,
"description": "Check of integer type selection depends on the context.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 5,
"description": "Type checking of binary integer literals.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 5,
"description": "Type checking of hexadecimal integer literals.",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-100",
"casesNumber": 5,
"description": "Type checking of decimal integer literals.",
"unexpectedBehaviour": false
}
]
}
}
}
@@ -3,7 +3,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Non-exhaustive when, without bound value, without else branch.
@@ -4,7 +4,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Non-exhaustive when, with bound value, without else branch.
@@ -4,8 +4,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 8
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 10
* NUMBER: 1
* DESCRIPTION: Non-exhaustive when using nullable boolean values.
*/
@@ -4,8 +4,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 8
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 10
* NUMBER: 2
* DESCRIPTION: Non-exhaustive when using subclasses of the nullable sealed class.
* HELPERS: sealedClasses
@@ -4,8 +4,8 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 8
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 10
* NUMBER: 3
* DESCRIPTION: Non-exhaustive when using nullable enum values.
* HELPERS: enumClasses
@@ -4,7 +4,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 3
* NUMBER: 1
* DESCRIPTION: Non-exhaustive when using boolean values.
@@ -4,7 +4,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 6
* NUMBER: 1
* DESCRIPTION: Non-exhaustive when using subclasses of the sealed class.
@@ -1,58 +0,0 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION
// SKIP_TXT
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SPEC VERSION: 0.1-draft
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 7
* NUMBER: 1
* DESCRIPTION: Non-exhaustive when using enum values.
* HELPERS: enumClasses
*/
// TESTCASE NUMBER: 1
fun case_1(value_1: EnumClass): String = <!NO_ELSE_IN_WHEN!>when<!>(value_1) {
EnumClass.EAST -> ""
EnumClass.SOUTH -> ""
EnumClass.NORTH -> ""
}
// TESTCASE NUMBER: 2
fun case_2(value_1: EnumClass): String = <!NO_ELSE_IN_WHEN!>when<!>(value_1) {
EnumClass.EAST, EnumClass.SOUTH, EnumClass.NORTH -> ""
}
// TESTCASE NUMBER: 3
fun case_3(value_1: EnumClass): String = <!NO_ELSE_IN_WHEN!>when<!>(value_1) {
EnumClass.EAST -> ""
}
// TESTCASE NUMBER: 4
fun case_4(value_1: EnumClass): String = <!NO_ELSE_IN_WHEN!>when<!>(value_1) { }
// TESTCASE NUMBER: 5
fun case_5(value_1: EnumClassSingle): String = <!NO_ELSE_IN_WHEN!>when<!>(value_1) { }
/*
* TESTCASE NUMBER: 6
* DISCUSSION: maybe use const propagation here?
* ISSUES: KT-25265
*/
fun case_6(value_1: EnumClass): String {
val west = EnumClass.WEST
return <!NO_ELSE_IN_WHEN!>when<!> (value_1) {
EnumClass.EAST -> ""
EnumClass.SOUTH -> ""
EnumClass.NORTH -> ""
west -> ""
}
}
/*
* TESTCASE NUMBER: 7
* DISCUSSION
* ISSUES: KT-26044
*/
fun case_7(value_1: EnumClassEmpty): String = <!NO_ELSE_IN_WHEN!>when<!> (value_1) { }
@@ -3,7 +3,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1
* NUMBER: 1
* DESCRIPTION: Exhaustive when, without bound value, with else branch.
@@ -4,7 +4,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1
* NUMBER: 2
* DESCRIPTION: Exhaustive when, with bound value, with else branch.
@@ -3,7 +3,7 @@
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-draft
* SPEC VERSION: 0.1-100
* PLACE: expressions, when-expression, exhaustive-when-expressions -> paragraph 2 -> sentence 1
* NUMBER: 3
* DESCRIPTION: Exhaustive when, with bound value (sealed, enum, boolean), with redundant else branch.

Some files were not shown because too many files have changed in this diff Show More