Get rid of duplicated file names in spec tests

Otherwise, corresponding IDE tests would fail on creation duplicated
files in the same directory
This commit is contained in:
Ilya Kirillov
2021-05-27 17:43:51 +02:00
parent 2d3ed4b7da
commit a8a31231f7
7 changed files with 16 additions and 14 deletions
+2
View File
@@ -28,6 +28,8 @@ sourceSets {
"test" { projectDefault() } "test" { projectDefault() }
} }
testsJar()
projectTest(parallel = true) { projectTest(parallel = true) {
workingDir = rootDir workingDir = rootDir
} }
@@ -81,7 +81,7 @@ class ImplBaseCase2() : Base() {
} }
} }
// FILE: TestCase.kt // FILE: TestCase3.kt
// TESTCASE NUMBER: 3 // TESTCASE NUMBER: 3
package testPackCase3 package testPackCase3
@@ -120,7 +120,7 @@ fun case3() {
} }
} }
// FILE: TestCase.kt // FILE: TestCase4.kt
// TESTCASE NUMBER: 4 // TESTCASE NUMBER: 4
package testPackCase4 package testPackCase4
<!REDUNDANT_MODIFIER!>open<!> abstract class Base { <!REDUNDANT_MODIFIER!>open<!> abstract class Base {
@@ -11,7 +11,7 @@
* DESCRIPTION: Abstract classes may contain abstract members, which should be implemented in an anonymous class that inherits from that abstract type * DESCRIPTION: Abstract classes may contain abstract members, which should be implemented in an anonymous class that inherits from that abstract type
*/ */
// FILE: TestCase.kt // FILE: TestCase1.kt
// TESTCASE NUMBER: 1 // TESTCASE NUMBER: 1
package testPackCase1 package testPackCase1
private abstract class Base { private abstract class Base {
@@ -48,7 +48,7 @@ fun case1() {
} }
// FILE: TestCase.kt // FILE: TestCase2.kt
/* /*
* TESTCASE NUMBER: 2 * TESTCASE NUMBER: 2
* NOTE: property is not implemented * NOTE: property is not implemented
@@ -90,7 +90,7 @@ fun case2() {
} }
// FILE: TestCase.kt // FILE: TestCase3.kt
// TESTCASE NUMBER: 3 // TESTCASE NUMBER: 3
package testPackCase3 package testPackCase3
private abstract class Base { private abstract class Base {
@@ -11,7 +11,7 @@
* DESCRIPTION: attempt to implement abstract members with invalid types * DESCRIPTION: attempt to implement abstract members with invalid types
*/ */
// FILE: TestCase.kt // FILE: TestCase1.kt
// TESTCASE NUMBER: 1 // TESTCASE NUMBER: 1
package testPackCase1 package testPackCase1
abstract class Base { abstract class Base {
@@ -37,7 +37,7 @@ class Case1 : Base() {
// FILE: TestCase.kt // FILE: TestCase2.kt
// TESTCASE NUMBER: 2 // TESTCASE NUMBER: 2
package testPackCase2 package testPackCase2
abstract class Base { abstract class Base {
@@ -53,7 +53,7 @@ class Case2(override val a: String, override var b: <!VAR_TYPE_MISMATCH_ON_OVERR
} }
} }
// FILE: TestCase.kt // FILE: TestCase3.kt
// TESTCASE NUMBER: 3 // TESTCASE NUMBER: 3
package testPackCase3 package testPackCase3
abstract class Base { abstract class Base {
@@ -11,7 +11,7 @@
* HELPERS: checkType * HELPERS: checkType
*/ */
// FILE: functions.kt // FILE: fileWithFunctions.kt
package functions package functions
@@ -13,7 +13,7 @@
*/ */
// FILE: TestCase.kt // FILE: TestCase1.kt
// TESTCASE NUMBER: 1 // TESTCASE NUMBER: 1
package testPackCase1 package testPackCase1
@@ -36,7 +36,7 @@ class Case1() {
var a: A = A() var a: A = A()
} }
// FILE: TestCase.kt // FILE: TestCase2.kt
// TESTCASE NUMBER: 2 // TESTCASE NUMBER: 2
package testPackCase2 package testPackCase2
@@ -12,7 +12,7 @@
* 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 * 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
*/ */
// FILE: TestCase.kt // FILE: TestCase1.kt
// TESTCASE NUMBER: 1 // TESTCASE NUMBER: 1
package testPackCase1 package testPackCase1
@@ -38,7 +38,7 @@ fun case1() {
} }
} }
// FILE: TestCase.kt // FILE: TestCase2.kt
// TESTCASE NUMBER: 2 // TESTCASE NUMBER: 2
package testPackCase2 package testPackCase2
@@ -66,7 +66,7 @@ fun case2() {
} }
// FILE: TestCase.kt // FILE: TestCase3.kt
// TESTCASE NUMBER: 3 // TESTCASE NUMBER: 3
// ISSUES: KT-35494 // ISSUES: KT-35494
package testPackCase3 package testPackCase3